Skip to content

Commit

Permalink
Fix incorrect loading of existing translations file (#710)
Browse files Browse the repository at this point in the history
  • Loading branch information
gimdongwoo authored and yangshun committed May 30, 2018
1 parent 5272944 commit 49a5263
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/write-translations.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ let currentTranslations = {
'localized-strings': {},
'pages-strings': {},
};
if (fs.existsSync(path)) {
if (fs.existsSync(CWD + '/i18n/en.json')) {
currentTranslations = JSON.parse(
fs.readFileSync(CWD + '/i18n/en.json', 'utf8')
);
Expand Down

0 comments on commit 49a5263

Please sign in to comment.