Bugfix. Just return locale string id.

This commit is contained in:
JC Brand 2015-06-22 20:31:51 +02:00
parent 346a2552cb
commit 0c67d2117b

View File

@ -286,7 +286,7 @@
if (window.navigator.systemLanguage && !locale) {
locale = this.isLocaleAvailable(window.navigator.systemLanguage, library_check);
}
return locale || locales.en;
return locale || 'en';
};
if (!moment.locale) { //moment.lang is deprecated after 2.8.1, use moment.locale instead