From ea24e3c983b72dc6e9847bedcd457a2ec63c7908 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Mon, 12 Apr 2021 12:08:48 -0400 Subject: [PATCH] Adding french to docs, and other languages --- joinlemmy-translations | 2 +- lemmy-docs | 2 +- lemmy-translations | 2 +- src/shared/i18next.ts | 16 ++++++++++++++++ src/shared/utils.ts | 2 +- 5 files changed, 20 insertions(+), 4 deletions(-) diff --git a/joinlemmy-translations b/joinlemmy-translations index 0c51e0d..6214657 160000 --- a/joinlemmy-translations +++ b/joinlemmy-translations @@ -1 +1 @@ -Subproject commit 0c51e0de8fec68fd56b1f99dbdd9ecc4d08d7919 +Subproject commit 6214657fd3723174a95607558aa2cbe86a963938 diff --git a/lemmy-docs b/lemmy-docs index cb466f8..1bb7a4e 160000 --- a/lemmy-docs +++ b/lemmy-docs @@ -1 +1 @@ -Subproject commit cb466f85c291c36625c05735eccc34e81ae45cd5 +Subproject commit 1bb7a4ec1ea635833d91de4f1d02e7c460f7d7d1 diff --git a/lemmy-translations b/lemmy-translations index d9a3a1a..f36cf23 160000 --- a/lemmy-translations +++ b/lemmy-translations @@ -1 +1 @@ -Subproject commit d9a3a1a04d57b9ef82076465f2b3c6dd5fad9430 +Subproject commit f36cf2332878286378303d0ce9629728b3889ac9 diff --git a/src/shared/i18next.ts b/src/shared/i18next.ts index e3736a2..93ad357 100644 --- a/src/shared/i18next.ts +++ b/src/shared/i18next.ts @@ -5,6 +5,14 @@ import { en } from "./translations/en"; import { ru } from "./translations/ru"; import { zh } from "./translations/zh"; import { es } from "./translations/es"; +import { eu } from "./translations/eu"; +import { bg } from "./translations/bg"; +import { nl } from "./translations/nl"; +import { fi } from "./translations/fi"; +import { fr } from "./translations/fr"; +import { el } from "./translations/el"; +import { ko } from "./translations/ko"; +import { pl } from "./translations/pl"; // https://github.com/nimbusec-oss/inferno-i18next/blob/master/tests/T.test.js#L66 const resources = { @@ -12,6 +20,14 @@ const resources = { ru, zh, es, + eu, + bg, + nl, + fi, + fr, + el, + ko, + pl, }; function format(value: any, format: any): any { diff --git a/src/shared/utils.ts b/src/shared/utils.ts index 685cddd..7bdc44e 100644 --- a/src/shared/utils.ts +++ b/src/shared/utils.ts @@ -1,4 +1,4 @@ -let DOCS_LANGUAGES = ["en", "es"]; +let DOCS_LANGUAGES = ["en", "es", "fr"]; export function getDocsLanguage(lang: string): string { return DOCS_LANGUAGES.includes(lang) ? lang : "en";