Remove leftovers
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
ac8856f08c
commit
68d4dc3301
|
@ -9,7 +9,6 @@ const DEFAULT_LOCALE = "en_US";
|
||||||
|
|
||||||
let language =
|
let language =
|
||||||
getLocaleData() || (document.documentElement.getAttribute("lang") as string);
|
getLocaleData() || (document.documentElement.getAttribute("lang") as string);
|
||||||
console.log("lang1", language);
|
|
||||||
|
|
||||||
language =
|
language =
|
||||||
language ||
|
language ||
|
||||||
|
@ -17,14 +16,12 @@ language =
|
||||||
/-/,
|
/-/,
|
||||||
"_"
|
"_"
|
||||||
);
|
);
|
||||||
console.log("language2", language);
|
|
||||||
|
|
||||||
export const locale =
|
export const locale =
|
||||||
language && Object.prototype.hasOwnProperty.call(langs, language)
|
language && Object.prototype.hasOwnProperty.call(langs, language)
|
||||||
? language
|
? language
|
||||||
: language.split("-")[0];
|
: language.split("-")[0];
|
||||||
|
|
||||||
console.log("lang3", locale);
|
|
||||||
Vue.use(VueI18n);
|
Vue.use(VueI18n);
|
||||||
|
|
||||||
export const i18n = new VueI18n({
|
export const i18n = new VueI18n({
|
||||||
|
|
Loading…
Reference in a new issue