From 9d91bb01c9ddfe668fa0b5bec6847ef376e883c8 Mon Sep 17 00:00:00 2001 From: winewill Date: Tue, 22 Sep 2026 11:48:33 +0800 Subject: [PATCH] fix(desktop): read the About copy from the live locale master replaced the startup-bound messages constant with a locale that follows the settings preference; the About dialog now reads the same locale as the update prompts so the two never mix languages. --- apps/desktop/src/main.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/desktop/src/main.ts b/apps/desktop/src/main.ts index bea4f8b341..4e13cc34ef 100644 --- a/apps/desktop/src/main.ts +++ b/apps/desktop/src/main.ts @@ -276,12 +276,12 @@ async function main(): Promise { } finally { ordinaryDialogs.delete(controller) } } - // Copy comes from the same startup locale as the update prompts so the - // dialog chrome and its content never mix languages. + // Copy comes from the same locale as the update prompts so the dialog + // chrome and its content never mix languages. const showAbout = async (): Promise => { - await ordinaryMessageBox({ type: 'info', title: messages.aboutMenu, message: messages.aboutProduct, - detail: formatDesktopMessage(messages.aboutVersion, { version: app.getVersion() }), - buttons: [messages.updateAcknowledge], cancelId: 0 }) + await ordinaryMessageBox({ type: 'info', title: locale.messages.aboutMenu, message: locale.messages.aboutProduct, + detail: formatDesktopMessage(locale.messages.aboutVersion, { version: app.getVersion() }), + buttons: [locale.messages.updateAcknowledge], cancelId: 0 }) } const appPreload = fileURLToPath(new URL('./preload-app.cjs', import.meta.url)) const applicationUrl = `${SCHEME}://app/`