mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05: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
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue