Skip to content

Commit

Permalink
fix bug where I18n object no longer load it self when created (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
u9520107 committed Mar 26, 2018
1 parent 7631c60 commit 7bfcf94
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/I18n/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export default class I18n {
this._loadLocale = loadLocale;
this._cache = {};
RUNTIME.instances.add(this);
this.load();
}
async _load(locale) {
if (locale !== PSEUDO_LOCALE && !this._cache[locale]) {
Expand Down

0 comments on commit 7bfcf94

Please sign in to comment.