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.
2021-04-03 17:26:43 +00:00
|
|
|
import { en } from "make-plural/plurals";
|
2021-09-21 09:31:37 +00:00
|
|
|
|
|
|
|
import { i18n } from "@lingui/core";
|
|
|
|
|
2021-04-03 17:26:43 +00:00
|
|
|
import { messages as localeEN } from "../locales/en";
|
2021-04-03 18:34:16 +00:00
|
|
|
import { messages as localeDEBUG } from "../locales/pseudo-LOCALE";
|
2021-04-03 17:07:11 +00:00
|
|
|
|
2021-04-03 18:34:16 +00:00
|
|
|
i18n.loadLocaleData("en", { plurals: en });
|
|
|
|
i18n.loadLocaleData("debug", { plurals: en });
|
2021-04-03 17:26:43 +00:00
|
|
|
i18n.load("en", localeEN);
|
2021-04-03 18:34:16 +00:00
|
|
|
i18n.load("debug", localeDEBUG);
|
2021-04-03 17:26:43 +00:00
|
|
|
i18n.activate("en");
|
2021-04-03 17:59:22 +00:00
|
|
|
|
2021-04-03 18:34:16 +00:00
|
|
|
if (window.location.search.includes("debugLocale")) {
|
|
|
|
i18n.activate("debug");
|
|
|
|
}
|