use console.warn and yellow text for locale fallback msg

This commit is contained in:
Michael Bradley, Jr 2018-08-23 15:00:25 -05:00
parent 72c1a9cd4c
commit 1a3e1a18df
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ function setOrDetectLocale(locale) {
let _locale = locale || osLocale.sync();
_locale = _locale.substr(0, 2);
if (_locale && !isSupported(_locale)) {
console.log(`===== locale ${_locale} ${how} but not supported, default: en =====`);
console.warn(`===== locale ${_locale} ${how} but not supported, default: en =====`.yellow);
return;
}
return i18n.setLocale(_locale);