Skip to content

Commit

Permalink
Force the initialisation of i18n options
Browse files Browse the repository at this point in the history
  • Loading branch information
francoispluchino committed Jun 16, 2018
1 parent e445f15 commit e313211
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/i18n-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ export default class BaseI18nPlugin extends BasePlugin
static set locales(translations) {
let keys, i, val;

// Force the initialisation of i18n options
this.defaultOptions = {};

if (typeof translations === 'object') {
keys = Object.keys(translations);

Expand Down

0 comments on commit e313211

Please sign in to comment.