feat(i18n): add core i18n setup and refactor UI texts to use translation keys#609
feat(i18n): add core i18n setup and refactor UI texts to use translation keys#609cuonglmptit wants to merge 6 commits into
Conversation
- Add useLocale composable for handling dynamic locales - Add i18n/index.ts for vue-i18n configuration - Update general store to include locale state - Update Tauri config for resource paths - Add default zh-CN.json language file for build
- Add i18n core setup in i18n/index.ts using vue-i18n - Update App.vue to initialize and provide dynamic locale on startup - Update useSharedMenu.ts to use translation keys for menu items - Update useTray.ts to react to locale changes and use translated tray menu labels
…all Vue components - Updated 13 Vue files to use vue-i18n `t()` function - Removed all hardcoded Chinese texts in templates and scripts - Ensured consistent usage of translation keys
…8n settings - Add separate SVG icons for light and dark themes in the language selection section - Auto-switch the icon based on current theme - Fix taskbar icon menu text not updating on locale change - Add button to open locales folder for easier customization
|
Checking up.... |
|
Thank you for submitting the PR. I’ll review it as soon as possible. Since multi-language support may cause subtle UI changes, I might modify your code or create a new PR myself. I also look forward to your contributions to the language files. Thank you for your understanding! |
Thanks for the update! I just wanted to contribute, so feel free to review or adjust the PR as needed. |
|
Hey @cuonglmptit , could u please send me your build (i18n) to vteamer@milkawa.xyz? Appriciated! |
Hi, I’ve already published the i18n build on my fork’s release page. |
|
Cause it only have windows edition. I may need a MacOS version! Thanks!
…------ Original Message ------
From "CuongLM" ***@***.***>
To "ayangweb/BongoCat" ***@***.***>
Cc "Michaelwucoc" ***@***.***>; "Comment"
***@***.***>
Date 9/10/2025 下午4:46:00
Subject Re: [ayangweb/BongoCat] feat(i18n): add core i18n setup and
refactor UI texts to use translation keys (PR #609)
cuonglmptit left a comment (ayangweb/BongoCat#609)
<#609 (comment)>
>Hey @cuonglmptit <https://github.com/cuonglmptit> , could u please
>send me your build (i18n) to ***@***.***? Appriciated!
>
Hi, I’ve already published the i18n build on my fork’s release page.
You can download it directly here:
https://github.com/cuonglmptit/bongocat-i18n/releases
Please let me know if you’d still prefer me to send it by email.
—
Reply to this email directly, view it on GitHub
<#609 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A2NA4GXXL5LCWP4MP7LRPYL3R7QMRAVCNFSM6AAAAACDA4RDF6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTENZTHE2TEMZZGI>.
You are receiving this because you commented.Message ID:
***@***.***>
|
Hi @Michaelwucoc, Ah ok. I only released the Windows version at first because, well… I’m too poor to have a Mac 😅 Thanks! |
|
Hey👋, I’ve submitted a new PR #645. You’re welcome to submit JSON files for other languages, and also feel free to submit the Tauri configuration changes as a separate PR. Thank you! I will close this PR after hearing back from you. |
|
@ayangweb Got it, please go ahead and close this PR. |
Summary
.vueUI files and tray/menu modules to use translation keys instead of hardcoded stringsDetails
useLocalecomposable and updated general store to support locale stateuseTray.tsanduseSharedMenu.tsto uset()from vue-i18nApp.vueWhy
Testing Steps
pnpm tauri devzh-CN,en-US,vi-VN)pnpm tauri build --debugto ensure packaging workssrc-tauri/target/debug/ortarget/debug/)Related #479