mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-11-30 01:00:27 +03:00
The tray menu labels were hardcoded in English. They now come from i18n keys, and the tray menu is rebuilt when the main process language changes (the renderer already syncs its language to the main process). Adds the Simplified Chinese translations. A unit test builds the tray menu, switches the language to zh-Hans and checks the labels. fix #15684 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **New Features** * Desktop tray menu labels are now localized in English and Simplified Chinese. * Tray labels update when the app’s language changes, including recording controls, settings, and app information. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: DarkSky <darksky2048@gmail.com>