mirror of https://github.com/embarklabs/embark.git
use console.warn and yellow text for locale fallback msg
This commit is contained in:
parent
72c1a9cd4c
commit
1a3e1a18df
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue