mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-30 17:37:09 +02:00
Fix incorrect loading of existing translations file (#710)
This commit is contained in:
parent
5272944626
commit
49a5263d62
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ let currentTranslations = {
|
||||||
'localized-strings': {},
|
'localized-strings': {},
|
||||||
'pages-strings': {},
|
'pages-strings': {},
|
||||||
};
|
};
|
||||||
if (fs.existsSync(path)) {
|
if (fs.existsSync(CWD + '/i18n/en.json')) {
|
||||||
currentTranslations = JSON.parse(
|
currentTranslations = JSON.parse(
|
||||||
fs.readFileSync(CWD + '/i18n/en.json', 'utf8')
|
fs.readFileSync(CWD + '/i18n/en.json', 'utf8')
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue