Introduce custom plural rules

And enable gd locale

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2021-03-02 16:11:00 +01:00
parent 48b3677d1d
commit d61f1f7689
4 changed files with 21 additions and 3 deletions

View File

@@ -4,6 +4,7 @@ import { DateFnsPlugin } from "@/plugins/dateFns";
import en from "../i18n/en_US.json";
import langs from "../i18n/langs.json";
import { getLocaleData } from "./auth";
import pluralizationRules from "../i18n/pluralRules";
const DEFAULT_LOCALE = "en_US";
@@ -31,6 +32,7 @@ export const i18n = new VueI18n({
messages: en, // set locale messages
fallbackLocale: DEFAULT_LOCALE,
formatFallbackMessages: true,
pluralizationRules,
});
const loadedLanguages = [DEFAULT_LOCALE];