diff --git a/data/honkai3rd/versions.yaml b/data/honkai3rd/versions.yaml index 6c2c5bcf..7fb75749 100644 --- a/data/honkai3rd/versions.yaml +++ b/data/honkai3rd/versions.yaml @@ -17,8 +17,10 @@ description: '' superstring: - - label: qua + krLabel: 양자 boss: qc - label: img + krLabel: 허수 boss: ofg ma: - - label: sss @@ -48,28 +50,40 @@ description: '' superstring: - - label: physical + krLabel: 물리 boss: jz - label: paralyze + krLabel: 마비 boss: jk - - label: type + krLabel: 상성 boss: hos - label: img + krLabel: 허수 boss: hod - - label: lightning + krLabel: 뇌전 boss: bke - label: bleed + krLabel: 출혈 boss: nk - - label: lightning + krLabel: 뇌전 boss: rpc - label: lightning (paralyze) + krLabel: 뇌전 (마비) boss: husk - - label: ice + krLabel: 빙결 boss: mpe - label: lightning (hit count) + krLabel: 뇌전 (타수) boss: husk2 - - label: type + krLabel: 상성 boss: wolf - label: type + krLabel: 상성 boss: hmd ma: - - label: sss diff --git a/public/locales/en-US/common.json b/public/locales/en-US/common.json index e0de6e2c..28a65e97 100644 --- a/public/locales/en-US/common.json +++ b/public/locales/en-US/common.json @@ -97,6 +97,9 @@ "new-battlesuits": "New Battlesuits", "new-weapons": "New Weapons", "new-stigmata-sets": "New Stigmata Sets", + "weekly-bosses": "Weekly Bosses", + "super-string": "Super String", + "memorial-arena": "Memorial Arena", "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." }, diff --git a/public/locales/ko-KR/common.json b/public/locales/ko-KR/common.json index 4d9f6953..60c17abb 100644 --- a/public/locales/ko-KR/common.json +++ b/public/locales/ko-KR/common.json @@ -87,6 +87,9 @@ "new-battlesuits": "신규 발키리", "new-weapons": "신규 무기", "new-stigmata-sets": "신규 성흔 세트", + "weekly-bosses": "주간 보스", + "super-string": "초끈 공간", + "memorial-arena": "기억 전장", "supply-events": "보급 이벤트", "supply-events-disclaimer": "주의: 보급 일정은 글로벌 아메리카 서버 기준으로 작성되어 있습니다. 수작업으로 갱신하기에 정확하지 않은 부분이 있을 수도 있습니다. 보급 가차를 돌리기 전에 게임 내 정보를 꼭 다시 한번 확인해주세요." }, diff --git a/src/components/organisms/BossTable.tsx b/src/components/organisms/BossTable.tsx index 523bc0fd..f7d15c86 100644 --- a/src/components/organisms/BossTable.tsx +++ b/src/components/organisms/BossTable.tsx @@ -1,4 +1,5 @@ import { addDays } from 'date-fns' +import { useTranslation } from 'next-i18next' import { Box, Flex, Image, Text } from 'theme-ui' import { assetsBucketBaseUrl } from '../../lib/consts' import { VersionData } from '../../lib/honkai3rd/versions' @@ -9,6 +10,7 @@ interface BossTableProps { } const BossTable = ({ versionData, today }: BossTableProps) => { + const { t } = useTranslation() const versionStartDate = new Date(versionData.duration[0]) return ( @@ -26,7 +28,7 @@ const BossTable = ({ versionData, today }: BossTableProps) => { borderBottom: 'default', }} > - Super String + {t('versions.super-string')} {versionData.superstring.map(([first, second], index) => { const firstDuration = [ @@ -75,7 +77,7 @@ const BossTable = ({ versionData, today }: BossTableProps) => { borderBottom: 'default', }} > - Memorial Arena + {t('versions.memorial-arena')} {versionData.ma.map(([first, second, third], index) => { const durations = [ @@ -140,11 +142,11 @@ const BossCard = ({ > diff --git a/src/pages/honkai3rd/versions/index.tsx b/src/pages/honkai3rd/versions/index.tsx index b833351a..eb073b3f 100644 --- a/src/pages/honkai3rd/versions/index.tsx +++ b/src/pages/honkai3rd/versions/index.tsx @@ -141,7 +141,7 @@ const VersionIndexPage = ({ - Bosses + {t('versions.weekly-bosses')} diff --git a/src/server/data/honkai3rd/versions.ts b/src/server/data/honkai3rd/versions.ts index 29a1734d..121f1f31 100644 --- a/src/server/data/honkai3rd/versions.ts +++ b/src/server/data/honkai3rd/versions.ts @@ -21,6 +21,17 @@ export function listVersionData(locale?: string): VersionData[] { return { ...omit(['krName'], version), 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) => {