mirror of
https://github.com/LemmyNet/joinlemmy-site.git
synced 2024-11-22 04:11:15 +00:00
Adding french to docs, and other languages
This commit is contained in:
parent
32448c3e46
commit
ea24e3c983
5 changed files with 20 additions and 4 deletions
|
@ -1 +1 @@
|
|||
Subproject commit 0c51e0de8fec68fd56b1f99dbdd9ecc4d08d7919
|
||||
Subproject commit 6214657fd3723174a95607558aa2cbe86a963938
|
|
@ -1 +1 @@
|
|||
Subproject commit cb466f85c291c36625c05735eccc34e81ae45cd5
|
||||
Subproject commit 1bb7a4ec1ea635833d91de4f1d02e7c460f7d7d1
|
|
@ -1 +1 @@
|
|||
Subproject commit d9a3a1a04d57b9ef82076465f2b3c6dd5fad9430
|
||||
Subproject commit f36cf2332878286378303d0ce9629728b3889ac9
|
|
@ -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 {
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue