修改多语言处理
parent
1c2e783568
commit
c878ad5699
|
|
@ -51,10 +51,8 @@
|
||||||
const dom = weex.requireModule('dom');
|
const dom = weex.requireModule('dom');
|
||||||
// nvue页面在方法中使用时的处理
|
// nvue页面在方法中使用时的处理
|
||||||
import { initVueI18n } from '@dcloudio/uni-i18n';
|
import { initVueI18n } from '@dcloudio/uni-i18n';
|
||||||
import en from '@/locale/en.json'
|
import indexNvue from '@/locale/index-nvue.js';
|
||||||
import zhHans from '@/locale/zh.json'
|
const { t } = initVueI18n(indexNvue)
|
||||||
const messages = { en, 'zh-Hans': zhHans }
|
|
||||||
const { t } = initVueI18n(messages)
|
|
||||||
//#endif
|
//#endif
|
||||||
import { isEmpty } from '@/common/js/common/common.js';
|
import { isEmpty } from '@/common/js/common/common.js';
|
||||||
export default {
|
export default {
|
||||||
|
|
|
||||||
|
|
@ -245,10 +245,8 @@
|
||||||
import i18n from '@/locale/index.js';
|
import i18n from '@/locale/index.js';
|
||||||
// nvue页面在方法中使用时的处理
|
// nvue页面在方法中使用时的处理
|
||||||
import { initVueI18n } from '@dcloudio/uni-i18n';
|
import { initVueI18n } from '@dcloudio/uni-i18n';
|
||||||
import en from '@/locale/en.json'
|
import indexNvue from '@/locale/index-nvue.js';
|
||||||
import zhHans from '@/locale/zh.json'
|
const { t } = initVueI18n(indexNvue)
|
||||||
const messages = { en, 'zh-Hans': zhHans }
|
|
||||||
const { t } = initVueI18n(messages)
|
|
||||||
//#endif
|
//#endif
|
||||||
// 状态栏高度
|
// 状态栏高度
|
||||||
var bar_height = parseInt(app.globalData.get_system_info('statusBarHeight', 0));
|
var bar_height = parseInt(app.globalData.get_system_info('statusBarHeight', 0));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue