Bugfix. Just return locale string id.
This commit is contained in:
parent
346a2552cb
commit
0c67d2117b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user