🐛 Removed extraneous log message for missing en.json locale file (#10662)

no issue
- content is in english (en) by default so only show the missing translation file warning when a non-english locale is configured
This commit is contained in:
Chris McKulka 2019-04-16 03:32:20 -06:00 committed by Kevin Ansfield
parent c58236e549
commit a6fc2f1514

View File

@ -210,7 +210,9 @@ I18n = {
} catch (err) {
themeStrings = undefined;
if (err.code === 'ENOENT') {
logging.warn(`Theme's file locales/${currentLocale}.json not found.`);
if (currentLocale !== 'en') {
logging.warn(`Theme's file locales/${currentLocale}.json not found.`);
}
} else {
throw err;
}