This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
authentik/web/src/interfaces/locale.ts
Jens Langhammer 5923edc69a web: translate sidebar and more list pages
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
2021-04-03 19:59:22 +02:00

18 lines
460 B
TypeScript

import { i18n } from "@lingui/core";
import { en } from "make-plural/plurals";
import { messages as localeEN } from "../locales/en";
i18n.loadLocaleData("en", {
plurals: en
});
i18n.load("en", localeEN);
i18n.activate("en");
// Uncomment to debug localisation
// import { messages as localeDEBUG } from "../locales/pseudo-LOCALE";
// i18n.load("debug", localeDEBUG);
// i18n.activate("debug");
// i18n.loadLocaleData("debug", {
// plurals: en
// });