Translate boss table
This commit is contained in:
@@ -17,8 +17,10 @@
|
|||||||
description: ''
|
description: ''
|
||||||
superstring:
|
superstring:
|
||||||
- - label: qua
|
- - label: qua
|
||||||
|
krLabel: 양자
|
||||||
boss: qc
|
boss: qc
|
||||||
- label: img
|
- label: img
|
||||||
|
krLabel: 허수
|
||||||
boss: ofg
|
boss: ofg
|
||||||
ma:
|
ma:
|
||||||
- - label: sss
|
- - label: sss
|
||||||
@@ -48,28 +50,40 @@
|
|||||||
description: ''
|
description: ''
|
||||||
superstring:
|
superstring:
|
||||||
- - label: physical
|
- - label: physical
|
||||||
|
krLabel: 물리
|
||||||
boss: jz
|
boss: jz
|
||||||
- label: paralyze
|
- label: paralyze
|
||||||
|
krLabel: 마비
|
||||||
boss: jk
|
boss: jk
|
||||||
- - label: type
|
- - label: type
|
||||||
|
krLabel: 상성
|
||||||
boss: hos
|
boss: hos
|
||||||
- label: img
|
- label: img
|
||||||
|
krLabel: 허수
|
||||||
boss: hod
|
boss: hod
|
||||||
- - label: lightning
|
- - label: lightning
|
||||||
|
krLabel: 뇌전
|
||||||
boss: bke
|
boss: bke
|
||||||
- label: bleed
|
- label: bleed
|
||||||
|
krLabel: 출혈
|
||||||
boss: nk
|
boss: nk
|
||||||
- - label: lightning
|
- - label: lightning
|
||||||
|
krLabel: 뇌전
|
||||||
boss: rpc
|
boss: rpc
|
||||||
- label: lightning (paralyze)
|
- label: lightning (paralyze)
|
||||||
|
krLabel: 뇌전 (마비)
|
||||||
boss: husk
|
boss: husk
|
||||||
- - label: ice
|
- - label: ice
|
||||||
|
krLabel: 빙결
|
||||||
boss: mpe
|
boss: mpe
|
||||||
- label: lightning (hit count)
|
- label: lightning (hit count)
|
||||||
|
krLabel: 뇌전 (타수)
|
||||||
boss: husk2
|
boss: husk2
|
||||||
- - label: type
|
- - label: type
|
||||||
|
krLabel: 상성
|
||||||
boss: wolf
|
boss: wolf
|
||||||
- label: type
|
- label: type
|
||||||
|
krLabel: 상성
|
||||||
boss: hmd
|
boss: hmd
|
||||||
ma:
|
ma:
|
||||||
- - label: sss
|
- - label: sss
|
||||||
|
|||||||
@@ -97,6 +97,9 @@
|
|||||||
"new-battlesuits": "New Battlesuits",
|
"new-battlesuits": "New Battlesuits",
|
||||||
"new-weapons": "New Weapons",
|
"new-weapons": "New Weapons",
|
||||||
"new-stigmata-sets": "New Stigmata Sets",
|
"new-stigmata-sets": "New Stigmata Sets",
|
||||||
|
"weekly-bosses": "Weekly Bosses",
|
||||||
|
"super-string": "Super String",
|
||||||
|
"memorial-arena": "Memorial Arena",
|
||||||
"supply-events": "Supply Events",
|
"supply-events": "Supply Events",
|
||||||
"supply-events-disclaimer": "DISCLAIMER: The schedule is based on Global - Americas Server. It may not be accurate since we update this manually. Please check the actual in-game information again before pulling supplies."
|
"supply-events-disclaimer": "DISCLAIMER: The schedule is based on Global - Americas Server. It may not be accurate since we update this manually. Please check the actual in-game information again before pulling supplies."
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -87,6 +87,9 @@
|
|||||||
"new-battlesuits": "신규 발키리",
|
"new-battlesuits": "신규 발키리",
|
||||||
"new-weapons": "신규 무기",
|
"new-weapons": "신규 무기",
|
||||||
"new-stigmata-sets": "신규 성흔 세트",
|
"new-stigmata-sets": "신규 성흔 세트",
|
||||||
|
"weekly-bosses": "주간 보스",
|
||||||
|
"super-string": "초끈 공간",
|
||||||
|
"memorial-arena": "기억 전장",
|
||||||
"supply-events": "보급 이벤트",
|
"supply-events": "보급 이벤트",
|
||||||
"supply-events-disclaimer": "주의: 보급 일정은 글로벌 아메리카 서버 기준으로 작성되어 있습니다. 수작업으로 갱신하기에 정확하지 않은 부분이 있을 수도 있습니다. 보급 가차를 돌리기 전에 게임 내 정보를 꼭 다시 한번 확인해주세요."
|
"supply-events-disclaimer": "주의: 보급 일정은 글로벌 아메리카 서버 기준으로 작성되어 있습니다. 수작업으로 갱신하기에 정확하지 않은 부분이 있을 수도 있습니다. 보급 가차를 돌리기 전에 게임 내 정보를 꼭 다시 한번 확인해주세요."
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import { addDays } from 'date-fns'
|
import { addDays } from 'date-fns'
|
||||||
|
import { useTranslation } from 'next-i18next'
|
||||||
import { Box, Flex, Image, Text } from 'theme-ui'
|
import { Box, Flex, Image, Text } from 'theme-ui'
|
||||||
import { assetsBucketBaseUrl } from '../../lib/consts'
|
import { assetsBucketBaseUrl } from '../../lib/consts'
|
||||||
import { VersionData } from '../../lib/honkai3rd/versions'
|
import { VersionData } from '../../lib/honkai3rd/versions'
|
||||||
@@ -9,6 +10,7 @@ interface BossTableProps {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const BossTable = ({ versionData, today }: BossTableProps) => {
|
const BossTable = ({ versionData, today }: BossTableProps) => {
|
||||||
|
const { t } = useTranslation()
|
||||||
const versionStartDate = new Date(versionData.duration[0])
|
const versionStartDate = new Date(versionData.duration[0])
|
||||||
return (
|
return (
|
||||||
<Flex>
|
<Flex>
|
||||||
@@ -26,7 +28,7 @@ const BossTable = ({ versionData, today }: BossTableProps) => {
|
|||||||
borderBottom: 'default',
|
borderBottom: 'default',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Super String
|
{t('versions.super-string')}
|
||||||
</Box>
|
</Box>
|
||||||
{versionData.superstring.map(([first, second], index) => {
|
{versionData.superstring.map(([first, second], index) => {
|
||||||
const firstDuration = [
|
const firstDuration = [
|
||||||
@@ -75,7 +77,7 @@ const BossTable = ({ versionData, today }: BossTableProps) => {
|
|||||||
borderBottom: 'default',
|
borderBottom: 'default',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Memorial Arena
|
{t('versions.memorial-arena')}
|
||||||
</Box>
|
</Box>
|
||||||
{versionData.ma.map(([first, second, third], index) => {
|
{versionData.ma.map(([first, second, third], index) => {
|
||||||
const durations = [
|
const durations = [
|
||||||
@@ -140,11 +142,11 @@ const BossCard = ({
|
|||||||
>
|
>
|
||||||
<Text
|
<Text
|
||||||
sx={{
|
sx={{
|
||||||
lineHeight: '10px',
|
lineHeight: '14px',
|
||||||
fontWeight: 700,
|
fontWeight: 700,
|
||||||
py: 0,
|
py: 0,
|
||||||
px: 1,
|
px: 1,
|
||||||
fontSize: '10px',
|
fontSize: '14px',
|
||||||
color: 'white',
|
color: 'white',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -141,7 +141,7 @@ const VersionIndexPage = ({
|
|||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
<Heading as='h3' mb={2}>
|
<Heading as='h3' mb={2}>
|
||||||
Bosses
|
{t('versions.weekly-bosses')}
|
||||||
</Heading>
|
</Heading>
|
||||||
|
|
||||||
<Box sx={{ mb: 3 }}>
|
<Box sx={{ mb: 3 }}>
|
||||||
|
|||||||
@@ -21,6 +21,17 @@ export function listVersionData(locale?: string): VersionData[] {
|
|||||||
return {
|
return {
|
||||||
...omit(['krName'], version),
|
...omit(['krName'], version),
|
||||||
name: locale === 'ko-KR' ? version.krName : version.name,
|
name: locale === 'ko-KR' ? version.krName : version.name,
|
||||||
|
superstring: version.superstring.map((row: any[]) => {
|
||||||
|
return row.map((stage: any) => {
|
||||||
|
return {
|
||||||
|
...stage,
|
||||||
|
label:
|
||||||
|
locale === 'ko-KR' && stage.krLabel != null
|
||||||
|
? stage.krLabel
|
||||||
|
: stage.label,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}),
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.sort((a: any, b: any) => {
|
.sort((a: any, b: any) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user