web: add additional locales

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2022-02-09 10:08:49 +01:00
parent 057c5c5e9a
commit c0601baca6
11 changed files with 1977 additions and 2361 deletions

View File

@ -22,7 +22,10 @@
"fr_FR",
"tr",
"es",
"pl"
"pl",
"zh_TW",
"zh-Hans",
"zh-Hant"
],
"formatOptions": {
"lineNumbers": false

View File

@ -1,4 +1,4 @@
import { en, es, fr, pl, tr } from "make-plural/plurals";
import { en, es, fr, pl, tr, zh } from "make-plural/plurals";
import { Messages, i18n } from "@lingui/core";
import { detect, fromNavigator, fromStorage, fromUrl } from "@lingui/detect-locale";
@ -10,6 +10,9 @@ import { messages as localeFR_FR } from "../locales/fr_FR";
import { messages as localePL } from "../locales/pl";
import { messages as localeDEBUG } from "../locales/pseudo-LOCALE";
import { messages as localeTR } from "../locales/tr";
import { messages as localeZH_Hans } from "../locales/zh-Hans";
import { messages as localeZH_Hant } from "../locales/zh-Hant";
import { messages as localeZH_TW } from "../locales/zh_TW";
export const LOCALES: {
code: string;
@ -54,6 +57,24 @@ export const LOCALES: {
label: t`Polish`,
locale: localePL,
},
{
code: "zh_TW",
plurals: zh,
label: t`Taiwanese Mandarin`,
locale: localeZH_TW,
},
{
code: "zh-Hans",
plurals: zh,
label: t`Chinese (simplified)`,
locale: localeZH_Hans,
},
{
code: "zh-Hant",
plurals: zh,
label: t`Chinese (traditional)`,
locale: localeZH_Hant,
},
];
LOCALES.forEach((locale) => {

View File

@ -844,6 +844,14 @@ msgstr "Checks if the request's user's password has been changed in the last x d
msgid "Checks the value from the policy request against several rules, mostly used to ensure password strength."
msgstr "Checks the value from the policy request against several rules, mostly used to ensure password strength."
#: src/interfaces/locale.ts
msgid "Chinese (simplified)"
msgstr "Chinese (simplified)"
#: src/interfaces/locale.ts
msgid "Chinese (traditional)"
msgstr "Chinese (traditional)"
#: src/pages/flows/FlowListPage.ts
msgid "Clear Flow cache"
msgstr "Clear Flow cache"
@ -5014,6 +5022,10 @@ msgstr "TOTP Device"
msgid "TOTP authenticator"
msgstr "TOTP authenticator"
#: src/interfaces/locale.ts
msgid "Taiwanese Mandarin"
msgstr "Taiwanese Mandarin"
#: src/pages/flows/StageBindingForm.ts
msgid "Target"
msgstr "Target"

View File

@ -838,6 +838,14 @@ msgstr "Comprueba si la contraseña del usuario de la solicitud se ha cambiado e
msgid "Checks the value from the policy request against several rules, mostly used to ensure password strength."
msgstr "Comprueba el valor de la solicitud de política en relación con varias reglas, que se utilizan principalmente para garantizar la seguridad de la contraseña."
#: src/interfaces/locale.ts
msgid "Chinese (simplified)"
msgstr ""
#: src/interfaces/locale.ts
msgid "Chinese (traditional)"
msgstr ""
#: src/pages/flows/FlowListPage.ts
msgid "Clear Flow cache"
msgstr "Borrar caché de flujo"
@ -4905,6 +4913,10 @@ msgstr "Dispositivo TOTP"
msgid "TOTP authenticator"
msgstr "Autenticador TOTP"
#: src/interfaces/locale.ts
msgid "Taiwanese Mandarin"
msgstr ""
#: src/pages/flows/StageBindingForm.ts
msgid "Target"
msgstr "Objetivo"

View File

@ -846,6 +846,14 @@ msgstr "Vérifie si le mot de passe de l'usager a été changé dans les X derni
msgid "Checks the value from the policy request against several rules, mostly used to ensure password strength."
msgstr "Vérifie la valeur de la requête via plusieurs règles, principalement utilisé pour s'assurer de la robustesse des mots de passe."
#: src/interfaces/locale.ts
msgid "Chinese (simplified)"
msgstr ""
#: src/interfaces/locale.ts
msgid "Chinese (traditional)"
msgstr ""
#: src/pages/flows/FlowListPage.ts
msgid "Clear Flow cache"
msgstr "Vider le cache des flux"
@ -4969,6 +4977,10 @@ msgstr ""
msgid "TOTP authenticator"
msgstr ""
#: src/interfaces/locale.ts
msgid "Taiwanese Mandarin"
msgstr ""
#: src/pages/flows/StageBindingForm.ts
msgid "Target"
msgstr "Cible"

View File

@ -838,6 +838,14 @@ msgstr "Sprawdza, czy żądanego użytkownika hasło zostało zmienione w ciągu
msgid "Checks the value from the policy request against several rules, mostly used to ensure password strength."
msgstr "Sprawdza wartość z żądania zasad pod kątem kilku reguł, używanych głównie w celu zapewnienia siły hasła."
#: src/interfaces/locale.ts
msgid "Chinese (simplified)"
msgstr ""
#: src/interfaces/locale.ts
msgid "Chinese (traditional)"
msgstr ""
#: src/pages/flows/FlowListPage.ts
msgid "Clear Flow cache"
msgstr "Wyczyść pamięć podręczną przepływu"
@ -4905,6 +4913,10 @@ msgstr "Urządzenie TOTP"
msgid "TOTP authenticator"
msgstr "Uwierzytelniacz TOTP"
#: src/interfaces/locale.ts
msgid "Taiwanese Mandarin"
msgstr ""
#: src/pages/flows/StageBindingForm.ts
msgid "Target"
msgstr "Cel"

View File

@ -838,6 +838,14 @@ msgstr ""
msgid "Checks the value from the policy request against several rules, mostly used to ensure password strength."
msgstr ""
#: src/interfaces/locale.ts
msgid "Chinese (simplified)"
msgstr ""
#: src/interfaces/locale.ts
msgid "Chinese (traditional)"
msgstr ""
#: src/pages/flows/FlowListPage.ts
msgid "Clear Flow cache"
msgstr ""
@ -5004,6 +5012,10 @@ msgstr ""
msgid "TOTP authenticator"
msgstr ""
#: src/interfaces/locale.ts
msgid "Taiwanese Mandarin"
msgstr ""
#: src/pages/flows/StageBindingForm.ts
msgid "Target"
msgstr ""

View File

@ -838,6 +838,14 @@ msgstr "İsteğin kullanıcı parolasının son x gün içinde değiştirilip de
msgid "Checks the value from the policy request against several rules, mostly used to ensure password strength."
msgstr "İlke isteğindeki değeri, çoğunlukla parola gücünü sağlamak için kullanılan çeşitli kurallara göre denetler."
#: src/interfaces/locale.ts
msgid "Chinese (simplified)"
msgstr ""
#: src/interfaces/locale.ts
msgid "Chinese (traditional)"
msgstr ""
#: src/pages/flows/FlowListPage.ts
msgid "Clear Flow cache"
msgstr "Akış önbelleğini temizleme"
@ -4907,6 +4915,10 @@ msgstr "TOTP Cihazı"
msgid "TOTP authenticator"
msgstr "TOTP kimlik doğrulayıcı"
#: src/interfaces/locale.ts
msgid "Taiwanese Mandarin"
msgstr ""
#: src/pages/flows/StageBindingForm.ts
msgid "Target"
msgstr "Hedef"

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff