diff --git a/lib/x18n.coffee b/lib/x18n.coffee index 5cafc97..ef0c0b5 100644 --- a/lib/x18n.coffee +++ b/lib/x18n.coffee @@ -4,7 +4,7 @@ base = (Observable) -> super() @dict = {} - @defaultlocal = 'en' + @defaultLocal = 'en' @chosenLocal = undefined @availableLocales = [] @@ -77,7 +77,7 @@ base = (Observable) -> @detectLocal(), @similiarLocales(@detectLocal())... @defaultLocal, - @similiarLocales(@defaultlocal)... + @similiarLocales(@defaultLocal)... 'en' @similiarLocales('en')..., ] diff --git a/lib/x18n.js b/lib/x18n.js index 3f6facf..b5e00ef 100644 --- a/lib/x18n.js +++ b/lib/x18n.js @@ -15,7 +15,7 @@ this.t = bind(this.t, this); X18n.__super__.constructor.call(this); this.dict = {}; - this.defaultlocal = 'en'; + this.defaultLocal = 'en'; this.chosenLocal = void 0; this.availableLocales = []; this.locales = []; @@ -116,7 +116,7 @@ X18n.prototype.sortLocales = function() { var _locales, i, len, local, locales, oldLocales; oldLocales = this.locales.slice(); - _locales = [this.chosenLocal].concat(slice.call(this.similiarLocales(this.chosenLocal)), [this.detectLocal()], slice.call(this.similiarLocales(this.detectLocal())), [this.defaultLocal], slice.call(this.similiarLocales(this.defaultlocal)), ['en'], slice.call(this.similiarLocales('en'))); + _locales = [this.chosenLocal].concat(slice.call(this.similiarLocales(this.chosenLocal)), [this.detectLocal()], slice.call(this.similiarLocales(this.detectLocal())), [this.defaultLocal], slice.call(this.similiarLocales(this.defaultLocal)), ['en'], slice.call(this.similiarLocales('en'))); locales = []; for (i = 0, len = _locales.length; i < len; i++) { local = _locales[i]; diff --git a/lib/x18n_build.js b/lib/x18n_build.js index 04ea6f8..bd523af 100644 --- a/lib/x18n_build.js +++ b/lib/x18n_build.js @@ -152,7 +152,7 @@ this.t = bind(this.t, this); X18n.__super__.constructor.call(this); this.dict = {}; - this.defaultlocal = 'en'; + this.defaultLocal = 'en'; this.chosenLocal = void 0; this.availableLocales = []; this.locales = []; @@ -253,7 +253,7 @@ X18n.prototype.sortLocales = function() { var _locales, i, len, local, locales, oldLocales; oldLocales = this.locales.slice(); - _locales = [this.chosenLocal].concat(slice.call(this.similiarLocales(this.chosenLocal)), [this.detectLocal()], slice.call(this.similiarLocales(this.detectLocal())), [this.defaultLocal], slice.call(this.similiarLocales(this.defaultlocal)), ['en'], slice.call(this.similiarLocales('en'))); + _locales = [this.chosenLocal].concat(slice.call(this.similiarLocales(this.chosenLocal)), [this.detectLocal()], slice.call(this.similiarLocales(this.detectLocal())), [this.defaultLocal], slice.call(this.similiarLocales(this.defaultLocal)), ['en'], slice.call(this.similiarLocales('en'))); locales = []; for (i = 0, len = _locales.length; i < len; i++) { local = _locales[i];