Merge core settings with existing translations (#1782)

This commit is contained in:
Chenlei Hu
2024-12-03 19:04:19 -08:00
committed by GitHub
parent 1847db7a47
commit d953b8fa46

View File

@@ -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
)
)
}