diff --git a/app/modules/i18n/config.ts b/app/modules/i18n/config.ts index fc2e21c49..a4f392437 100644 --- a/app/modules/i18n/config.ts +++ b/app/modules/i18n/config.ts @@ -45,7 +45,7 @@ export const languages = [ code: "zh", name: "δΈ­ζ–‡", }, -]; +] as const; export const config = { supportedLngs: languages.map((lang) => lang.code), diff --git a/app/routes/contributions.tsx b/app/routes/contributions.tsx index e86543625..9b350b22d 100644 --- a/app/routes/contributions.tsx +++ b/app/routes/contributions.tsx @@ -2,6 +2,7 @@ import type { MetaFunction } from "@remix-run/node"; import { Trans, useTranslation } from "react-i18next"; import { Main } from "~/components/Main"; import { useSetTitle } from "~/hooks/useSetTitle"; +import { languages } from "~/modules/i18n"; import { makeTitle } from "~/utils/strings"; import { BORZOIC_TWITTER, @@ -21,6 +22,40 @@ export const handle = { i18n: "contributions", }; +const TRANSLATORS: Array<{ + translators: Array; + language: typeof languages[number]["code"]; +}> = [ + { + translators: ["Frederik"], + language: "da", + }, + { + translators: ["NoAimβ„’bUrn", "Alice"], + language: "de", + }, + { + translators: ["Hachi"], + language: "es", + }, + { + translators: ["funyaaa"], + language: "ja", + }, + { + translators: ["niLPotential"], + language: "ko", + }, + { + translators: ["Ferrari"], + language: "nl", + }, + { + translators: ["DoubleCookies", "Yaga"], + language: "ru", + }, +]; + export default function ContributionsPage() { const { t } = useTranslation(["common", "contributions"]); useSetTitle(t("common:pages.contributors")); @@ -60,6 +95,12 @@ export default function ContributionsPage() { {" "} - {t("contributions:uberu")} + {TRANSLATORS.map(({ translators, language }) => ( +
  • + {translators.join(", ")} - {t("contributions:translation")} ( + {languages.find((lang) => lang.code === language)!.name}) +
  • + ))} ); diff --git a/public/locales/en/contributions.json b/public/locales/en/contributions.json index f2d364e77..1fbafb48f 100644 --- a/public/locales/en/contributions.json +++ b/public/locales/en/contributions.json @@ -3,5 +3,6 @@ "code": "Several made commits to the code", "lean": "Helped with uncovering Splatoon internals and created the Lanista bot", "borzoic": "Made badges, icons and front page art", - "uberu": "Drew mini Judd holding heart emoji" + "uberu": "Drew mini Judd holding heart emoji", + "translation": "Translation" } diff --git a/translation-progress.md b/translation-progress.md index a96b2e2ce..027456211 100644 --- a/translation-progress.md +++ b/translation-progress.md @@ -29,9 +29,16 @@ -### 🟒 contributions.json +### 🟑 contributions.json -**5/5** +**5/6** + +
    +Missing + +- translation + +
    ### 🟒 faq.json @@ -110,9 +117,16 @@ -### 🟒 contributions.json +### 🟑 contributions.json -**5/5** +**5/6** + +
    +Missing + +- translation + +
    ### 🟒 faq.json @@ -191,9 +205,16 @@ **36/36** -### 🟒 contributions.json +### 🟑 contributions.json -**5/5** +**5/6** + +
    +Missing + +- translation + +
    ### 🟒 faq.json @@ -247,12 +268,13 @@ ### 🟑 contributions.json -**4/5** +**4/6**
    Missing - code +- translation
    @@ -310,9 +332,16 @@ -### 🟒 contributions.json +### 🟑 contributions.json -**5/5** +**5/6** + +
    +Missing + +- translation + +
    ### 🟒 faq.json @@ -364,9 +393,16 @@ -### 🟒 contributions.json +### 🟑 contributions.json -**5/5** +**5/6** + +
    +Missing + +- translation + +
    ### 🟒 faq.json @@ -438,9 +474,16 @@ **36/36** -### 🟒 contributions.json +### 🟑 contributions.json -**5/5** +**5/6** + +
    +Missing + +- translation + +
    ### 🟒 faq.json @@ -492,9 +535,16 @@ -### 🟒 contributions.json +### 🟑 contributions.json -**5/5** +**5/6** + +
    +Missing + +- translation + +
    ### 🟒 faq.json