diff options
author | brantje <brantje@gmail.com> | 2017-07-22 15:44:46 +0300 |
---|---|---|
committer | brantje <brantje@gmail.com> | 2017-07-22 15:44:46 +0300 |
commit | c994798c9ca2d6da5019e43cdcb436e0d2dd7545 (patch) | |
tree | ccf14b3d2477add0f69082249812e72e60c70568 /fixLocale.js | |
parent | 8f7c1c727e4866ba11b513cfb7ebaf2b0a1f8a7c (diff) |
Fix locales
Diffstat (limited to 'fixLocale.js')
-rw-r--r-- | fixLocale.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fixLocale.js b/fixLocale.js index a52c89d..745fc94 100644 --- a/fixLocale.js +++ b/fixLocale.js @@ -25,7 +25,7 @@ for (var i = 0; i < language_files.length; i++) { } var json_data = JSON.parse(fs.readFileSync(file, 'utf8')); for (var translate_key in json_data) { - if (!translate_key.hasOwnProperty('placeholders') && en[translate_key].hasOwnProperty('placeholders')) { + if (en[translate_key] && !translate_key.hasOwnProperty('placeholders') && en[translate_key].hasOwnProperty('placeholders')) { console.log('Fixed ' + file + ' translate key: ' + translate_key); json_data[translate_key].placeholders = en[translate_key].placeholders; } |