提交 38f283a3 编写于 作者: Q qiang

chore: build runtime

上级 3caaed0a
......@@ -1455,9 +1455,12 @@ let locale;
}
}
const i18n = initVueI18n(locale, messages );
const i18n = initVueI18n(
locale,
messages
);
const t = i18n.t;
const i18nMixin = i18n.mixin = {
const i18nMixin = (i18n.mixin = {
beforeCreate () {
const unwatch = i18n.i18n.watchLocale(() => {
this.$forceUpdate();
......@@ -1471,7 +1474,7 @@ const i18nMixin = i18n.mixin = {
return t(key, values)
}
}
};
});
const setLocale$1 = i18n.setLocale;
const getLocale$1 = i18n.getLocale;
......@@ -1480,7 +1483,7 @@ function initAppLocale (Vue, appVm, locale) {
locale: locale || i18n.getLocale()
});
const localeWatchers = [];
appVm.$watchLocale = (fn) => {
appVm.$watchLocale = fn => {
localeWatchers.push(fn);
};
Object.defineProperty(appVm, '$locale', {
......
......@@ -2025,9 +2025,12 @@ let locale;
locale = my.getSystemInfoSync().language;
}
const i18n = initVueI18n(locale, {});
const i18n = initVueI18n(
locale,
{}
);
const t = i18n.t;
const i18nMixin = i18n.mixin = {
const i18nMixin = (i18n.mixin = {
beforeCreate () {
const unwatch = i18n.i18n.watchLocale(() => {
this.$forceUpdate();
......@@ -2041,7 +2044,7 @@ const i18nMixin = i18n.mixin = {
return t(key, values)
}
}
};
});
const setLocale$1 = i18n.setLocale;
const getLocale$1 = i18n.getLocale;
......@@ -2050,7 +2053,7 @@ function initAppLocale (Vue, appVm, locale) {
locale: locale || i18n.getLocale()
});
const localeWatchers = [];
appVm.$watchLocale = (fn) => {
appVm.$watchLocale = fn => {
localeWatchers.push(fn);
};
Object.defineProperty(appVm, '$locale', {
......@@ -2073,6 +2076,10 @@ const hooks = [
'onUnhandledRejection'
];
{
hooks.push('onShareAppMessage');
}
function initEventChannel$1 () {
Vue.prototype.getOpenerEventChannel = function () {
if (!this.__eventChannel__) {
......
......@@ -1703,9 +1703,12 @@ let locale;
locale = swan.getSystemInfoSync().language;
}
const i18n = initVueI18n(locale, {});
const i18n = initVueI18n(
locale,
{}
);
const t = i18n.t;
const i18nMixin = i18n.mixin = {
const i18nMixin = (i18n.mixin = {
beforeCreate () {
const unwatch = i18n.i18n.watchLocale(() => {
this.$forceUpdate();
......@@ -1719,7 +1722,7 @@ const i18nMixin = i18n.mixin = {
return t(key, values)
}
}
};
});
const setLocale$1 = i18n.setLocale;
const getLocale$1 = i18n.getLocale;
......@@ -1728,7 +1731,7 @@ function initAppLocale (Vue, appVm, locale) {
locale: locale || i18n.getLocale()
});
const localeWatchers = [];
appVm.$watchLocale = (fn) => {
appVm.$watchLocale = fn => {
localeWatchers.push(fn);
};
Object.defineProperty(appVm, '$locale', {
......
......@@ -1452,9 +1452,12 @@ let locale;
locale = ks.getSystemInfoSync().language;
}
const i18n = initVueI18n(locale, {});
const i18n = initVueI18n(
locale,
{}
);
const t = i18n.t;
const i18nMixin = i18n.mixin = {
const i18nMixin = (i18n.mixin = {
beforeCreate () {
const unwatch = i18n.i18n.watchLocale(() => {
this.$forceUpdate();
......@@ -1468,7 +1471,7 @@ const i18nMixin = i18n.mixin = {
return t(key, values)
}
}
};
});
const setLocale$1 = i18n.setLocale;
const getLocale$1 = i18n.getLocale;
......@@ -1477,7 +1480,7 @@ function initAppLocale (Vue, appVm, locale) {
locale: locale || i18n.getLocale()
});
const localeWatchers = [];
appVm.$watchLocale = (fn) => {
appVm.$watchLocale = fn => {
localeWatchers.push(fn);
};
Object.defineProperty(appVm, '$locale', {
......
......@@ -1613,9 +1613,12 @@ let locale;
locale = wx.getSystemInfoSync().language;
}
const i18n = initVueI18n(locale, {});
const i18n = initVueI18n(
locale,
{}
);
const t = i18n.t;
const i18nMixin = i18n.mixin = {
const i18nMixin = (i18n.mixin = {
beforeCreate () {
const unwatch = i18n.i18n.watchLocale(() => {
this.$forceUpdate();
......@@ -1629,7 +1632,7 @@ const i18nMixin = i18n.mixin = {
return t(key, values)
}
}
};
});
const setLocale$1 = i18n.setLocale;
const getLocale$1 = i18n.getLocale;
......@@ -1638,7 +1641,7 @@ function initAppLocale (Vue, appVm, locale) {
locale: locale || i18n.getLocale()
});
const localeWatchers = [];
appVm.$watchLocale = (fn) => {
appVm.$watchLocale = fn => {
localeWatchers.push(fn);
};
Object.defineProperty(appVm, '$locale', {
......
......@@ -1709,9 +1709,12 @@ let locale;
locale = tt.getSystemInfoSync().language;
}
const i18n = initVueI18n(locale, {});
const i18n = initVueI18n(
locale,
{}
);
const t = i18n.t;
const i18nMixin = i18n.mixin = {
const i18nMixin = (i18n.mixin = {
beforeCreate () {
const unwatch = i18n.i18n.watchLocale(() => {
this.$forceUpdate();
......@@ -1725,7 +1728,7 @@ const i18nMixin = i18n.mixin = {
return t(key, values)
}
}
};
});
const setLocale$1 = i18n.setLocale;
const getLocale$1 = i18n.getLocale;
......@@ -1734,7 +1737,7 @@ function initAppLocale (Vue, appVm, locale) {
locale: locale || i18n.getLocale()
});
const localeWatchers = [];
appVm.$watchLocale = (fn) => {
appVm.$watchLocale = fn => {
localeWatchers.push(fn);
};
Object.defineProperty(appVm, '$locale', {
......
......@@ -1349,9 +1349,12 @@ let locale;
locale = wx.getSystemInfoSync().language;
}
const i18n = initVueI18n(locale, {});
const i18n = initVueI18n(
locale,
{}
);
const t = i18n.t;
const i18nMixin = i18n.mixin = {
const i18nMixin = (i18n.mixin = {
beforeCreate () {
const unwatch = i18n.i18n.watchLocale(() => {
this.$forceUpdate();
......@@ -1365,7 +1368,7 @@ const i18nMixin = i18n.mixin = {
return t(key, values)
}
}
};
});
const setLocale$1 = i18n.setLocale;
const getLocale$1 = i18n.getLocale;
......@@ -1374,7 +1377,7 @@ function initAppLocale (Vue, appVm, locale) {
locale: locale || i18n.getLocale()
});
const localeWatchers = [];
appVm.$watchLocale = (fn) => {
appVm.$watchLocale = fn => {
localeWatchers.push(fn);
};
Object.defineProperty(appVm, '$locale', {
......
......@@ -1419,9 +1419,12 @@ let locale;
locale = qa.getSystemInfoSync().language;
}
const i18n = initVueI18n(locale, {});
const i18n = initVueI18n(
locale,
{}
);
const t = i18n.t;
const i18nMixin = i18n.mixin = {
const i18nMixin = (i18n.mixin = {
beforeCreate () {
const unwatch = i18n.i18n.watchLocale(() => {
this.$forceUpdate();
......@@ -1435,7 +1438,7 @@ const i18nMixin = i18n.mixin = {
return t(key, values)
}
}
};
});
const setLocale$1 = i18n.setLocale;
const getLocale$1 = i18n.getLocale;
......@@ -1444,7 +1447,7 @@ function initAppLocale (Vue, appVm, locale) {
locale: locale || i18n.getLocale()
});
const localeWatchers = [];
appVm.$watchLocale = (fn) => {
appVm.$watchLocale = fn => {
localeWatchers.push(fn);
};
Object.defineProperty(appVm, '$locale', {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册