Browse files

I18n instances should default to the defaultLocale, not be hard-coded

  • Loading branch information...
1 parent 9e5935d commit 401aace6f3865d05d557a8a7962c28e6fb407310 @mde committed Jun 23, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/i18n.js
View
4 lib/i18n.js
@@ -36,7 +36,7 @@ i18n = new (function () {
return str;
};
- this.getDefaultLocale = function (locale) {
+ this.getDefaultLocale = function () {
return _defaultLocale;
};
@@ -52,7 +52,7 @@ i18n = new (function () {
})();
i18n.I18n = function (locale) {
- var _locale = locale || DEFAULT_LOCALE;
+ var _locale = locale || i18n.getDefaultLocale();
this.getLocale = function (locale) {
return _locale;

0 comments on commit 401aace

Please sign in to comment.