mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-04 17:04:59 +03:00
🐛 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:
parent
c58236e549
commit
a6fc2f1514
@ -210,7 +210,9 @@ I18n = {
|
|||||||
} catch (err) {
|
} catch (err) {
|
||||||
themeStrings = undefined;
|
themeStrings = undefined;
|
||||||
if (err.code === 'ENOENT') {
|
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 {
|
} else {
|
||||||
throw err;
|
throw err;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user