@cocoar/vue-localization 1.12.1 → 1.13.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -357,7 +357,11 @@ var y = class {
|
|
|
357
357
|
}
|
|
358
358
|
localeData;
|
|
359
359
|
constructor(t = {}) {
|
|
360
|
-
this.defaultLanguage = t.defaultLanguage ?? "en", this._language = n(this.defaultLanguage), this._loading = n(!1), this.l10nStore = new r(), this.i18nStore = new h(), this.timezoneService = new x(t.timezoneProviders)
|
|
360
|
+
this.defaultLanguage = t.defaultLanguage ?? "en", this._language = n(this.defaultLanguage), this._loading = n(!1), this.l10nStore = new r(), this.i18nStore = new h(), this.timezoneService = new x(t.timezoneProviders);
|
|
361
|
+
let a = new i();
|
|
362
|
+
this.l10nSources = [a];
|
|
363
|
+
let o = new y();
|
|
364
|
+
this.i18nSources = [o], t.l10nUrl && this.l10nSources.push(new C(t.l10nUrl)), t.i18nUrl && this.i18nSources.push(new w(t.i18nUrl)), this.localeData = e(() => this.l10nStore.getLocaleData(this._language.value));
|
|
361
365
|
}
|
|
362
366
|
getDefaultLanguage() {
|
|
363
367
|
return this.defaultLanguage;
|
package/package.json
CHANGED