2021-09-12 10:23:51 -07:00
|
|
|
import { createI18n } from "vue-i18n";
|
2021-09-28 13:21:59 -07:00
|
|
|
import bgBG from "./languages/bg-BG";
|
2021-09-12 10:23:51 -07:00
|
|
|
import daDK from "./languages/da-DK";
|
|
|
|
import deDE from "./languages/de-DE";
|
|
|
|
import en from "./languages/en";
|
|
|
|
import esEs from "./languages/es-ES";
|
2021-09-23 05:42:33 -07:00
|
|
|
import ptBR from "./languages/pt-BR";
|
2021-09-12 10:23:51 -07:00
|
|
|
import etEE from "./languages/et-EE";
|
|
|
|
import frFR from "./languages/fr-FR";
|
|
|
|
import itIT from "./languages/it-IT";
|
|
|
|
import ja from "./languages/ja";
|
|
|
|
import koKR from "./languages/ko-KR";
|
|
|
|
import nlNL from "./languages/nl-NL";
|
|
|
|
import pl from "./languages/pl";
|
|
|
|
import ruRU from "./languages/ru-RU";
|
|
|
|
import sr from "./languages/sr";
|
|
|
|
import srLatn from "./languages/sr-latn";
|
2021-09-14 16:55:04 -07:00
|
|
|
import trTR from "./languages/tr-TR";
|
2021-09-12 10:23:51 -07:00
|
|
|
import svSE from "./languages/sv-SE";
|
|
|
|
import zhCN from "./languages/zh-CN";
|
|
|
|
import zhHK from "./languages/zh-HK";
|
|
|
|
|
|
|
|
const languageList = {
|
|
|
|
en,
|
|
|
|
"zh-HK": zhHK,
|
2021-09-28 13:21:59 -07:00
|
|
|
"bg-BG": bgBG,
|
2021-09-12 10:23:51 -07:00
|
|
|
"de-DE": deDE,
|
|
|
|
"nl-NL": nlNL,
|
|
|
|
"es-ES": esEs,
|
2021-09-23 05:42:33 -07:00
|
|
|
"pt-BR": ptBR,
|
2021-09-12 10:23:51 -07:00
|
|
|
"fr-FR": frFR,
|
|
|
|
"it-IT": itIT,
|
|
|
|
"ja": ja,
|
|
|
|
"da-DK": daDK,
|
|
|
|
"sr": sr,
|
|
|
|
"sr-latn": srLatn,
|
|
|
|
"sv-SE": svSE,
|
2021-09-14 16:55:04 -07:00
|
|
|
"tr-TR": trTR,
|
2021-09-12 10:23:51 -07:00
|
|
|
"ko-KR": koKR,
|
|
|
|
"ru-RU": ruRU,
|
|
|
|
"zh-CN": zhCN,
|
|
|
|
"pl": pl,
|
|
|
|
"et-EE": etEE,
|
|
|
|
};
|
|
|
|
|
|
|
|
export const i18n = createI18n({
|
|
|
|
locale: localStorage.locale || "en",
|
|
|
|
fallbackLocale: "en",
|
|
|
|
silentFallbackWarn: true,
|
2021-09-16 07:48:28 -07:00
|
|
|
silentTranslationWarn: true,
|
2021-09-12 10:23:51 -07:00
|
|
|
messages: languageList,
|
|
|
|
});
|