diff --git a/src/lang.js b/src/lang.js index 2562884..4b150cf 100755 --- a/src/lang.js +++ b/src/lang.js @@ -32,7 +32,9 @@ var container = { if (message === undefined) { message = this.messages[lang].def; } - + if (typeof this.messages[lang] === 'undefined') { + this.messages[lang] = {} + } this.messages[lang][attribute] = message; },