mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-15 12:53:51 +02:00
feat(localization): element-ui localization
This commit is contained in:
920
html/src/app.js
920
html/src/app.js
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,10 @@
|
||||
import en from './strings/en.json' assert {type: 'JSON'};
|
||||
import elements_en from 'element-ui/lib/locale/lang/en';
|
||||
// import ja from './strings/ja.json' assert { type: 'JSON' };
|
||||
import zh_TW from './strings/zh_TW.json' assert {type: 'JSON'};
|
||||
import elements_zh_TW from 'element-ui/lib/locale/lang/zh-TW';
|
||||
|
||||
export {en, zh_TW};
|
||||
const localized_en = {...en, ...elements_en};
|
||||
const localized_zh_TW = {...zh_TW, ...elements_zh_TW};
|
||||
|
||||
export {localized_en as en, localized_zh_TW as zh_TW};
|
||||
|
||||
@@ -10,7 +10,6 @@ import Noty from 'noty';
|
||||
import Vue from 'vue';
|
||||
import VueI18n from 'vue-i18n';
|
||||
import ElementUI from 'element-ui';
|
||||
import locale from 'element-ui/lib/locale/lang/en';
|
||||
import * as workerTimers from 'worker-timers';
|
||||
import MarqueeText from 'vue-marquee-text-component';
|
||||
import * as localizedStrings from './localization/localizedStrings.js';
|
||||
@@ -40,7 +39,7 @@ Vue.component('marquee-text', MarqueeText);
|
||||
});
|
||||
|
||||
Vue.use(ElementUI, {
|
||||
locale
|
||||
i18n: (key, value) => i18n.t(key, value)
|
||||
});
|
||||
|
||||
var escapeTag = (s) =>
|
||||
|
||||
Reference in New Issue
Block a user