add load strings for i18n from database

This commit is contained in:
Milos Holba
2021-03-16 19:26:42 +01:00
parent 353180491b
commit 617f715774
9 changed files with 154 additions and 26 deletions

View File

@@ -8,10 +8,9 @@ import cn from './lang/cn.json'
Vue.use(VueI18n);
const i18n = new VueI18n({
locale: config.locale,
messages: Object.assign({
en
}),
locale: config.language,
silentTranslationWarn: true,
});
export default i18n;