mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-07-07 23:33:14 +08:00
Follow-ups from reviewing the i18n split: - check-i18n: the main key-coverage guard silently skipped any t() call whose key was not a string literal, so a future t(someVar) in main would ship unverified against the small main catalog. It now reports non-literal t() calls as a hard failure, matching the intent that main use literal keys. - main i18n test: cover the getAppLanguage() branch where the system locale is absent from the catalog and resolution falls back to the default language. - renderer i18n test: capture the language to restore inside beforeAll — at module-collection time lazy init has not run yet, so i18n.language was undefined and afterAll restored to undefined.