Fix incorrect loading of existing translations file (#710)

This commit is contained in:
Dongwoo Gim 2018-05-30 16:45:28 +09:00 committed by Yangshun Tay
parent 5272944626
commit 49a5263d62

View file

@ -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')
);