From a6373ebb33f65d8692075fa6c5f44762672a8aa0 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Fri, 31 Dec 2021 16:19:17 +0100 Subject: [PATCH] web: fix tr locale not being loaded Signed-off-by: Jens Langhammer --- web/src/interfaces/locale.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/src/interfaces/locale.ts b/web/src/interfaces/locale.ts index 8128fce00..524132922 100644 --- a/web/src/interfaces/locale.ts +++ b/web/src/interfaces/locale.ts @@ -1,4 +1,4 @@ -import { en, fr } from "make-plural/plurals"; +import { en, fr, tr } from "make-plural/plurals"; import { i18n } from "@lingui/core"; import { detect, fromNavigator, fromStorage, fromUrl } from "@lingui/detect-locale"; @@ -6,11 +6,14 @@ import { detect, fromNavigator, fromStorage, fromUrl } from "@lingui/detect-loca import { messages as localeEN } from "../locales/en"; import { messages as localeFR_FR } from "../locales/fr_FR"; import { messages as localeDEBUG } from "../locales/pseudo-LOCALE"; +import { messages as localeTR } from "../locales/tr"; i18n.loadLocaleData("en", { plurals: en }); i18n.loadLocaleData("debug", { plurals: en }); +i18n.loadLocaleData("tr", { plurals: tr }); i18n.loadLocaleData("fr_FR", { plurals: fr }); i18n.load("en", localeEN); +i18n.load("tr", localeTR); i18n.load("fr_FR", localeFR_FR); i18n.load("debug", localeDEBUG);