Fix AboutPage translations to use next-intl format
- Update translation files to use named tags instead of numbered tags - Changed <2> tags to semantic names like <gameLink>, <link>, <link1>, <link2> - Update AboutPage component to use matching tag names in t.rich() calls - Fixes UNMATCHED_CLOSING_TAG errors from next-intl - Both English and Japanese translations updated
This commit is contained in:
parent
eec47f69b6
commit
c1cc810a39
3 changed files with 74 additions and 85 deletions
|
|
@ -22,19 +22,17 @@ const AboutPage: React.FC<Props> = (props: Props) => {
|
|||
<h1>{common('about.segmented_control.about')}</h1>
|
||||
<section>
|
||||
<h2>
|
||||
{/* TODO: Refactor to about.rich() */}
|
||||
{about("about.subtitle")}
|
||||
{/* <Trans i18nKey="about:about.subtitle">
|
||||
Granblue.team is a tool to save and share team compositions for{' '}
|
||||
<a
|
||||
href="https://game.granbluefantasy.jp"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
>
|
||||
Granblue Fantasy
|
||||
</a>
|
||||
, a social RPG from Cygames.
|
||||
</Trans> */}
|
||||
{about.rich('about.subtitle', {
|
||||
gameLink: (chunks) => (
|
||||
<a
|
||||
href="https://game.granbluefantasy.jp"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
>
|
||||
{chunks}
|
||||
</a>
|
||||
)
|
||||
})}
|
||||
</h2>
|
||||
<p>{about('about.explanation.0')}</p>
|
||||
<p>{about('about.explanation.1')}</p>
|
||||
|
|
@ -56,59 +54,52 @@ const AboutPage: React.FC<Props> = (props: Props) => {
|
|||
<section>
|
||||
<h2>{about('about.credits.title')}</h2>
|
||||
<p>
|
||||
{/* TODO: Refactor to about.rich() */}
|
||||
{about('about.credits.maintainer')}
|
||||
{/* <Trans i18nKey="about:about.credits.maintainer">
|
||||
Granblue.team was built and is maintained by{' '}
|
||||
<a
|
||||
href="https://twitter.com/jedmund"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
>
|
||||
@jedmund
|
||||
</a>
|
||||
.
|
||||
</Trans> */}
|
||||
{about.rich('about.credits.maintainer', {
|
||||
link: (chunks) => (
|
||||
<a
|
||||
href="https://twitter.com/jedmund"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
>
|
||||
{chunks}
|
||||
</a>
|
||||
)
|
||||
})}
|
||||
</p>
|
||||
<p>
|
||||
{/* TODO: Refactor to about.rich() */}
|
||||
{about('about.credits.assistance')}
|
||||
{/* <Trans i18nKey="about:about.credits.assistance">
|
||||
Many thanks to{' '}
|
||||
<a
|
||||
href="https://twitter.com/lalalalinna"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
>
|
||||
@lalalalinna
|
||||
</a>{' '}
|
||||
and{' '}
|
||||
<a
|
||||
href="https://twitter.com/tarngerine"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
>
|
||||
@tarngerine
|
||||
</a>
|
||||
, who both provided a lot of help and advice as I was ramping up.
|
||||
</Trans> */}
|
||||
{about.rich('about.credits.assistance', {
|
||||
link1: (chunks) => (
|
||||
<a
|
||||
href="https://twitter.com/lalalalinna"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
>
|
||||
{chunks}
|
||||
</a>
|
||||
),
|
||||
link2: (chunks) => (
|
||||
<a
|
||||
href="https://twitter.com/tarngerine"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
>
|
||||
{chunks}
|
||||
</a>
|
||||
)
|
||||
})}
|
||||
</p>
|
||||
<p>
|
||||
{/* TODO: Refactor to about.rich() */}
|
||||
{about('about.credits.support')}
|
||||
{/* <Trans i18nKey="about:about.credits.support">
|
||||
Many thanks also go to everyone in{' '}
|
||||
<a
|
||||
href="https://game.granbluefantasy.jp/#guild/detail/1190185"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
>
|
||||
Fireplace
|
||||
</a>{' '}
|
||||
and the granblue-tools Discord for all of their help with with bug
|
||||
testing, feature requests, and moral support. (P.S. We're
|
||||
recruiting!)
|
||||
</Trans> */}
|
||||
{about.rich('about.credits.support', {
|
||||
link: (chunks) => (
|
||||
<a
|
||||
href="https://game.granbluefantasy.jp/#guild/detail/1190185"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
>
|
||||
{chunks}
|
||||
</a>
|
||||
)
|
||||
})}
|
||||
</p>
|
||||
</section>
|
||||
|
||||
|
|
@ -134,19 +125,17 @@ const AboutPage: React.FC<Props> = (props: Props) => {
|
|||
<section>
|
||||
<h2>{about('about.license.title')}</h2>
|
||||
<p>
|
||||
{/* TODO: Refactor to about.rich() */}
|
||||
{about('about.license.license')}
|
||||
{/* <Trans i18nKey="about:about.license.license">
|
||||
This app is licensed under{' '}
|
||||
<a
|
||||
href="https://choosealicense.com/licenses/agpl-3.0/"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
>
|
||||
GNU AGPLv3
|
||||
</a>
|
||||
.
|
||||
</Trans> */}
|
||||
{about.rich('about.license.license', {
|
||||
link: (chunks) => (
|
||||
<a
|
||||
href="https://choosealicense.com/licenses/agpl-3.0/"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
>
|
||||
{chunks}
|
||||
</a>
|
||||
)
|
||||
})}
|
||||
</p>
|
||||
<p>{about('about.license.explanation')}</p>
|
||||
</section>
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
}
|
||||
},
|
||||
"about": {
|
||||
"subtitle": "Granblue.team is a tool to save and share team compositions for <2>Granblue Fantasy</2>, a social RPG from Cygames.",
|
||||
"subtitle": "Granblue.team is a tool to save and share team compositions for <gameLink>Granblue Fantasy</gameLink>, a social RPG from Cygames.",
|
||||
"explanation": [
|
||||
"To get started, all you have to do is add an item to a team and a URL will be created for you to share wherever you like, no account needed.",
|
||||
"If you do make an account, you can save any teams you find for future reference and keep all of your teams together in one place."
|
||||
|
|
@ -17,9 +17,9 @@
|
|||
},
|
||||
"credits": {
|
||||
"title": "Credits",
|
||||
"maintainer": "Granblue.team was built and is maintained by <2>@jedmund</2>.",
|
||||
"assistance": "Many thanks to <2>@lalalalinna</2> and <6>@tarngerine</6>, who both provided a lot of help and advice as I was ramping up.",
|
||||
"support": "Many thanks also go to everyone in <2>Fireplace</2> and the granblue-tools Discord for all of their help with with bug testing, feature requests, and moral support. (P.S. We're recruiting!)"
|
||||
"maintainer": "Granblue.team was built and is maintained by <link>@jedmund</link>.",
|
||||
"assistance": "Many thanks to <link1>@lalalalinna</link1> and <link2>@tarngerine</link2>, who both provided a lot of help and advice as I was ramping up.",
|
||||
"support": "Many thanks also go to everyone in <link>Fireplace</link> and the granblue-tools Discord for all of their help with with bug testing, feature requests, and moral support. (P.S. We're recruiting!)"
|
||||
},
|
||||
"contributing": {
|
||||
"title": "Contributing",
|
||||
|
|
@ -27,7 +27,7 @@
|
|||
},
|
||||
"license": {
|
||||
"title": "License",
|
||||
"license": "This app is licensed under <2>GNU AGPLv3</2>.",
|
||||
"license": "This app is licensed under <link>GNU AGPLv3</link>.",
|
||||
"explanation": "Plainly, that means you can download the source, modify it, and redistribute it as long as you attribute this project, use the same license, and keep your derivative work open source as well."
|
||||
},
|
||||
"copyright": {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
}
|
||||
},
|
||||
"about": {
|
||||
"subtitle": "Granblue.teamは<2>グランブルーファンタジー</2>の編成を作成・保存・共有するサイトです。",
|
||||
"subtitle": "Granblue.teamは<gameLink>グランブルーファンタジー</gameLink>の編成を作成・保存・共有するサイトです。",
|
||||
"explanation": [
|
||||
"新しい編成にキャラクター・武器・召喚石を追加するだけで、好きな場所で共有できるURLが作成されます—アカウントなしで!",
|
||||
"しかしアカウントを作れば、見つけた編成を保存して今後の参考の参考にすることができますし、すべての編成を1つの場所にまとめておくことができます。"
|
||||
|
|
@ -17,9 +17,9 @@
|
|||
},
|
||||
"credits": {
|
||||
"title": "謝意",
|
||||
"maintainer": "Granblue.teamの創造者・維持者は<2>@jedmund</2>.",
|
||||
"assistance": "<2>@lalalalinna</2>さんと<6>@tarngerine</6>さんがプロジェクト開始の時にたくさん助かりました。",
|
||||
"support": "<2>Fireplace</2>団(アナザーver)とgranblue-toolsのDiscordの皆さんの協力も感謝しています。(募集中です!)"
|
||||
"maintainer": "Granblue.teamの創造者・維持者は<link>@jedmund</link>.",
|
||||
"assistance": "<link1>@lalalalinna</link1>さんと<link2>@tarngerine</link2>さんがプロジェクト開始の時にたくさん助かりました。",
|
||||
"support": "<link>Fireplace</link>団(アナザーver)とgranblue-toolsのDiscordの皆さんの協力も感謝しています。(募集中です!)"
|
||||
},
|
||||
"contributing": {
|
||||
"title": "協力",
|
||||
|
|
@ -27,7 +27,7 @@
|
|||
},
|
||||
"license": {
|
||||
"title": "ライセンス",
|
||||
"license": "このサイトは<2>GNU AGPLv3</2>のライセンスで提供されています.",
|
||||
"license": "このサイトは<link>GNU AGPLv3</link>のライセンスで提供されています.",
|
||||
"explanation": "派生のプロジェクトを作成したら、このプロジェクトをちゃんとリンクしてリンクし・派生のプロジェクトもオープンソースで同じライセンスで提供されたら、自由にソースコードをダウンロド・改変・再配布を許可されています。"
|
||||
},
|
||||
"copyright": {
|
||||
|
|
|
|||
Loading…
Reference in a new issue