From d953b8fa4637db0a027cda5fbb612810af1fb80a Mon Sep 17 00:00:00 2001 From: Chenlei Hu Date: Tue, 3 Dec 2024 19:04:19 -0800 Subject: [PATCH] Merge core settings with existing translations (#1782) --- scripts/update-setting-locale.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/update-setting-locale.ts b/scripts/update-setting-locale.ts index 601535495..c9fb23ec7 100644 --- a/scripts/update-setting-locale.ts +++ b/scripts/update-setting-locale.ts @@ -25,7 +25,14 @@ const main = () => { const globalLocale = JSON.parse(fs.readFileSync(localePath, 'utf-8')) fs.writeFileSync( localePath, - JSON.stringify({ ...globalLocale, settingsDialog: localeStrings }, null, 2) + JSON.stringify( + { + ...globalLocale, + settingsDialog: { ...globalLocale.settingsDialog, ...localeStrings } + }, + null, + 2 + ) ) }