diff --git a/public/locales/en-US/common.json b/public/locales/en-US/common.json index a6c62819..d92101c4 100644 --- a/public/locales/en-US/common.json +++ b/public/locales/en-US/common.json @@ -1,21 +1,15 @@ { - "nav": { + "common": { "abyss-lab": "Abyss Lab", "honkai-3rd": "Honkai 3rd", "versions": "Versions", "battlesuits": "Battlesuits", "weapons": "Weapons", "stigmata": "Stigmata", - "elfs": "ELFs" - }, - "breadcrumb": { - "honkai-3rd": "Honkai 3rd", - "battlesuits": "Battlesuits", - "stigmata": "Stigmata", - "weapons": "Weapons", "elfs": "ELFs", - "versions": "Versions" + "elysian-realm": "Elysian Realm (WIP)" }, + "nav": {}, "index": { "honkai-3rd": "Honkai 3rd", "battlesuits": "Battlesuits", @@ -127,5 +121,14 @@ "label": "Divine Key Supply", "description": "Only available in special supply events like Firepower Supply and Schicksal Arsenal. Pull with 280 x crystal for each supply." } + }, + "elysian-realm": { + "signets": "Signets", + "remembrance-sigil": "Remembrance Sigil", + "supports": "Supports", + "no-upgrades": "No Upgrades Available", + "nexus-signets": "Nexus Signets", + "normal-signets": "Normal Signets", + "exclusive-signets": "Exclusive Signets" } } diff --git a/public/locales/ko-KR/common.json b/public/locales/ko-KR/common.json index c86b1623..d65947e7 100644 --- a/public/locales/ko-KR/common.json +++ b/public/locales/ko-KR/common.json @@ -1,25 +1,14 @@ { - "nav": { + "common": { + "elysian-realm": "과거의 낙원 (작업중)", + "battlesuits": "발키리", "abyss-lab": "어비스랩", "honkai-3rd": "붕괴 3rd", "versions": "업데이트", - "battlesuits": "발키리", "weapons": "무기", "stigmata": "성흔", "elfs": "인형" }, - "breadcrumb": { - "honkai-3rd": "붕괴 3rd", - "battlesuits": "발키리", - "stigmata": "성흔", - "top": "(상)", - "mid": "(중)", - "bot": "(하)", - "weapons": "무기", - "elfs": "인형", - "versions": "업데이트", - "description": "비공식 붕괴 3rd 위키" - }, "battlesuits-list": { "heading": "발키리", "description": "붕괴 3rd 발키리 목록", @@ -126,5 +115,14 @@ "label": "신의 열쇠 보급", "description": "천명 무기고나 화력 보급등 특수 보급 이벤트에서만 획득 가능. 보급마다 280 x 수정을 소모." } + }, + "elysian-realm": { + "signets": "각인", + "remembrance-sigil": "회상의 증명", + "supports": "지원 발키리", + "no-upgrades": "레벨업 불가능", + "nexus-signets": "증폭 각인", + "normal-signets": "일반 각인", + "exclusive-signets": "전용 각인" } } diff --git a/src/components/molecules/BattlesuitCard.tsx b/src/components/molecules/BattlesuitCard.tsx index 5e0409a2..f1cc3243 100644 --- a/src/components/molecules/BattlesuitCard.tsx +++ b/src/components/molecules/BattlesuitCard.tsx @@ -11,9 +11,15 @@ interface BattlesuitCardProps { battlesuit: Pick hidden?: boolean size?: 'sm' | 'default' + href?: string } -const BattlesuitCard = ({ battlesuit, hidden, size }: BattlesuitCardProps) => { +const BattlesuitCard = ({ + battlesuit, + hidden, + size, + href, +}: BattlesuitCardProps) => { const { locale } = useRouter() const battlesuitName = translate( @@ -22,6 +28,10 @@ const BattlesuitCard = ({ battlesuit, hidden, size }: BattlesuitCardProps) => { battlesuit.name ) + if (href == null) { + href = `/honkai3rd/battlesuits/${battlesuit.id}` + } + if (size === 'sm') { return ( { }, }} > - + { }, }} > - + @@ -49,13 +49,13 @@ const StigmataSetPage = ({ { @@ -109,10 +109,10 @@ const BattlesuitShowPage = ({ { return ( diff --git a/src/pages/honkai3rd/elfs/[elfId].tsx b/src/pages/honkai3rd/elfs/[elfId].tsx index 05f3da96..f487e82d 100644 --- a/src/pages/honkai3rd/elfs/[elfId].tsx +++ b/src/pages/honkai3rd/elfs/[elfId].tsx @@ -35,10 +35,10 @@ const ElfShowPage = ({ elf }: ElfShowPageProps) => { return ( { @@ -59,8 +59,8 @@ const ElfShowPage = ({ elf }: ElfShowPageProps) => { { return ( diff --git a/src/pages/honkai3rd/enemies/index.tsx b/src/pages/honkai3rd/enemies/index.tsx index 7ad749e5..a9227de3 100644 --- a/src/pages/honkai3rd/enemies/index.tsx +++ b/src/pages/honkai3rd/enemies/index.tsx @@ -112,13 +112,13 @@ const Honkai3rdIndexPage = () => { return ( Enemies diff --git a/src/pages/honkai3rd/index.tsx b/src/pages/honkai3rd/index.tsx index 52ecdf00..13e9dab5 100644 --- a/src/pages/honkai3rd/index.tsx +++ b/src/pages/honkai3rd/index.tsx @@ -46,15 +46,15 @@ const Honkai3rdIndexPage = () => { return ( - {t('nav.honkai-3rd')} + {t('common.honkai-3rd')} { + @@ -106,7 +107,13 @@ export async function getStaticProps({ locale }: NextPageContext) { export default Honkai3rdIndexPage interface NavItemProps { - target: 'versions' | 'battlesuits' | 'stigmata' | 'weapons' | 'elfs' + target: + | 'versions' + | 'battlesuits' + | 'stigmata' + | 'weapons' + | 'elfs' + | 'elysian-realm' } const NavItem = ({ target }: NavItemProps) => { @@ -121,7 +128,7 @@ const NavItem = ({ target }: NavItemProps) => { mr={1} src={`${assetsBucketBaseUrl}/honkai3rd/nav-icons/${target}.png`} /> - {t(`nav.${target}`)} + {t(`common.${target}`)} diff --git a/src/pages/honkai3rd/stigmata/index.tsx b/src/pages/honkai3rd/stigmata/index.tsx index 2b84f429..96ade258 100644 --- a/src/pages/honkai3rd/stigmata/index.tsx +++ b/src/pages/honkai3rd/stigmata/index.tsx @@ -40,17 +40,17 @@ const StigmataListPage = ({ return ( diff --git a/src/pages/honkai3rd/versions/[versionId].tsx b/src/pages/honkai3rd/versions/[versionId].tsx index 0df4bc31..e5cb5dca 100644 --- a/src/pages/honkai3rd/versions/[versionId].tsx +++ b/src/pages/honkai3rd/versions/[versionId].tsx @@ -46,12 +46,12 @@ const VersionShowPage = ({ return ( { return translate( locale, @@ -69,8 +69,8 @@ const VersionShowPage = ({ diff --git a/src/pages/honkai3rd/weapons/[weaponId].tsx b/src/pages/honkai3rd/weapons/[weaponId].tsx index 7b687ca5..4c4a99e7 100644 --- a/src/pages/honkai3rd/weapons/[weaponId].tsx +++ b/src/pages/honkai3rd/weapons/[weaponId].tsx @@ -42,10 +42,10 @@ const WeaponShowPage = ({ return ( {