Conversation
|
This looks promising and mostly aligns with what I had in mind for adding i18n support. There are some issues however and I don't want to go into all the details right now because I have a rather large refactoring coming up related to upgrading to latest version of Mantine lib and this PR will have to wait for it and be rebased on top of it when it's ready. In the meantime I will point out some larger things that need to be fixed:
You can fix the above now or when I ping this thread about completion of the mantine update and you can fix them after a rebase. |
|
Also just FYI there is a somewhat recent effort that also added Chinese (traditional and simplified) as well as Russian translation in this fork https://github.com/ManuZhu0728/TrguiNG/blob/master/src/i18n.ts |
1.remove local storage items related to i18n 2.move i18n init to app component 3.fix interface panel form field handling for array fields 4.remove readme.zh-CN.md 5.Add Traditional Chinese (zh-Hant) localization for application strings and UI elements
|
Some revisions. Please review. |
…coverage checker Major changes: Add check-i18n-coverage.js script to verify translation completeness across locale files Core i18n improvements: Replace PriorityStrings with PriorityTranslationKeys for dynamic priority text translation Add translation support for details panel tabs via labelRenderer prop Implement localized country names in peers table using Intl.DisplayNames Convert hardcoded strings to translation keys (torrent status, peer status, encryption state, etc.) Translation file updates: Add translation keys: torrent.status.sequential, torrent.files.mixed, peer status keys Standardize magnet link copy text with plural forms (copyMagnet_one/copyMagnet_other) Translate "Tracker" as "索引服务器" in Chinese locales Add tracker announce state translations (updating, working) Glossary updates: Add peer status terminology (optimistic unchoke, can download, incoming/outgoing, etc.) Fix table alignment formatting This improves translation consistency and prepares the codebase for better multilingual support.
I added multi-language support to this software and added Chinese translation, please review