feat(electron): add global context menu (#13218)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Added automatic synchronization of language settings between the
desktop app and the system environment.
* Context menu actions (Cut, Copy, Paste) in the desktop app are now
localized according to the selected language.

* **Improvements**
* Context menu is always available with standard editing actions,
regardless of spell check settings.

* **Localization**
* Added translations for "Cut", "Copy", and "Paste" in the context menu.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
EYHN
2025-07-16 12:37:38 +08:00
committed by GitHub
parent 45b05f06b3
commit d44771dfe9
11 changed files with 138 additions and 74 deletions

View File

@@ -552,6 +552,7 @@ __metadata:
resolution: "@affine/electron@workspace:packages/frontend/apps/electron"
dependencies:
"@affine-tools/utils": "workspace:*"
"@affine/i18n": "workspace:*"
"@affine/native": "workspace:*"
"@affine/nbstore": "workspace:*"
"@electron-forge/cli": "npm:^7.6.0"