From 49a5263d62ea58ef1aa4e952e5ed6ec44e4a0b28 Mon Sep 17 00:00:00 2001 From: Dongwoo Gim Date: Wed, 30 May 2018 16:45:28 +0900 Subject: [PATCH] Fix incorrect loading of existing translations file (#710) --- lib/write-translations.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/write-translations.js b/lib/write-translations.js index aa80d029fd13..8181313df0d2 100755 --- a/lib/write-translations.js +++ b/lib/write-translations.js @@ -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') );