From c081a60af5879ab8aca19d5f0bbff9316b20cd65 Mon Sep 17 00:00:00 2001 From: Hoan Tran Date: Tue, 13 Jun 2017 21:30:30 +0700 Subject: [PATCH] Fix problem when reorder object of json file --- index.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/index.js b/index.js index 6b70f4f..3e636c4 100644 --- a/index.js +++ b/index.js @@ -94,10 +94,7 @@ module.exports = (locales, pattern, buildDir, opts) => { }).then(newLocaleMaps => { return Promise.all( locales.map(locale => { - // If the default locale, overwrite the origin file - const localeMap = locale === defaultLocale - ? merge(oldLocaleMaps[locale], newLocaleMaps[locale]) - : merge(newLocaleMaps[locale], oldLocaleMaps[locale]) + const localeMap = merge(newLocaleMaps[locale], oldLocaleMaps[locale]) const outputPath = path.resolve(buildDir, locale)