cherry-studio/src/main
Jake Jia 816a92c609
feat(app-menu): add full i18n support and sync lanuage with app language settings (#11131)
Previously, the macOS menu bar was always displayed in English regardless of
system language or in-app language settings. This change enables the menu bar
to dynamically follow the application's language preference.

Key changes:
- Add language change listener to automatically update menu when user switches language
- Refactor AppMenuService with proper subscription management and cleanup
- Add appMenu translations for en-us, zh-cn, and zh-tw locales
- Implement destroy method to prevent memory leaks from config subscriptions
- Convert all menu items (File, Edit, View, Window, Help) to use localized labels

The menu bar now respects the in-app language setting and updates in real-time
when users change their preferences, providing a consistent multilingual experience.
2025-11-06 14:46:42 +08:00
..
apiServer chore[lint]: add import type lint (#11091) 2025-11-01 10:40:02 +08:00
configs fix[SelectionAssistant]: shift+click behavior in macOS and clipboard behavior in Windows (#8390) 2025-07-23 17:24:26 +08:00
integration feat: enable cherryin provider 2025-09-23 20:19:05 +08:00
knowledge chore[lint]: add import type lint (#11091) 2025-11-01 10:40:02 +08:00
mcpServers chore[lint]: add import type lint (#11091) 2025-11-01 10:40:02 +08:00
services feat(app-menu): add full i18n support and sync lanuage with app language settings (#11131) 2025-11-06 14:46:42 +08:00
utils chore[lint]: add import type lint (#11091) 2025-11-01 10:40:02 +08:00
bootstrap.ts refactor: move initAppDataDir function to a new utils module (#8337) 2025-07-21 15:46:14 +08:00
config.ts feat: enable cherryin provider 2025-09-23 20:19:05 +08:00
constant.ts feat: support portable config dir (#5039) 2025-04-24 17:23:56 +08:00
electron.d.ts feat: add the ability to display the application in tray #297 2024-11-09 08:42:09 +08:00
env.d.ts feat: added vite_main_bundle_id config and improved code cleanliness 2024-09-15 10:35:02 +08:00
index.ts fix: add PowerMonitorService for system shutdown handling (#11115) 2025-11-04 18:56:09 +08:00
ipc.ts fix: add PowerMonitorService for system shutdown handling (#11115) 2025-11-04 18:56:09 +08:00