mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-23 12:11:16 +00:00
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…
x
Reference in New Issue
Block a user