Translate boss table

This commit is contained in:
Sakura Knoll
2022-07-21 20:53:17 +09:00 Unverified
parent f798689316
commit 5608266c9d
6 changed files with 38 additions and 5 deletions
+14
View File
@@ -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
+3
View File
@@ -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."
},
+3
View File
@@ -87,6 +87,9 @@
"new-battlesuits": "신규 발키리",
"new-weapons": "신규 무기",
"new-stigmata-sets": "신규 성흔 세트",
"weekly-bosses": "주간 보스",
"super-string": "초끈 공간",
"memorial-arena": "기억 전장",
"supply-events": "보급 이벤트",
"supply-events-disclaimer": "주의: 보급 일정은 글로벌 아메리카 서버 기준으로 작성되어 있습니다. 수작업으로 갱신하기에 정확하지 않은 부분이 있을 수도 있습니다. 보급 가차를 돌리기 전에 게임 내 정보를 꼭 다시 한번 확인해주세요."
},
+6 -4
View File
@@ -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 (
<Flex>
@@ -26,7 +28,7 @@ const BossTable = ({ versionData, today }: BossTableProps) => {
borderBottom: 'default',
}}
>
Super String
{t('versions.super-string')}
</Box>
{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')}
</Box>
{versionData.ma.map(([first, second, third], index) => {
const durations = [
@@ -140,11 +142,11 @@ const BossCard = ({
>
<Text
sx={{
lineHeight: '10px',
lineHeight: '14px',
fontWeight: 700,
py: 0,
px: 1,
fontSize: '10px',
fontSize: '14px',
color: 'white',
}}
>
+1 -1
View File
@@ -141,7 +141,7 @@ const VersionIndexPage = ({
</Box>
<Heading as='h3' mb={2}>
Bosses
{t('versions.weekly-bosses')}
</Heading>
<Box sx={{ mb: 3 }}>
+11
View File
@@ -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) => {