I think that
18. line: this.defaultlocal = 'en';
&
97. line: X18n.prototype.setDefault = function(local) {
98. line: this.defaultLocal = local;
should all be written defaultLocal rather than defaultlocal.
Now, when I setDefault to other language than 'en' I got 2 props in my x18n object:
defaultlocal: "en"
defaultLocal: "any_other_lang"
I think that
18. line: this.defaultlocal = 'en';
&
97. line: X18n.prototype.setDefault = function(local) {
98. line: this.defaultLocal = local;
should all be written defaultLocal rather than defaultlocal.
Now, when I setDefault to other language than 'en' I got 2 props in my x18n object:
defaultlocal: "en"
defaultLocal: "any_other_lang"