-
Notifications
You must be signed in to change notification settings - Fork 3.5k
feat: Add Traditional Chinese (zh-TW) locale support with complete translations #5083
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
feat: Add Traditional Chinese (zh-TW) locale support with complete translations #5083
Conversation
Refactored frontend/src/locale/src/tw.json to use the required ICU MessageFormat structure (objects with "defaultMessage"). Changes include: 1. Added the missing "language-name" key at the top level to fix the build error. 2. Converted all simple string values to objects containing "defaultMessage". 3. Aligned keys with the existing zh.json and en.json files. This resolves the "TypeError: Cannot read properties of undefined (reading 'length')" error in the CI check.
|
Docker Image for build 3 is available on DockerHub: Note Ensure you backup your NPM instance before testing this image! Especially if there are database changes. Warning Changes and additions to DNS Providers require verification by at least 2 members of the community! |
|
Can you please rebase and resolve conflicts? I would do it for you, but..
|
📋 Summary
This PR adds complete Traditional Chinese (Taiwan) locale support to Nginx Proxy Manager, including UI translations and help documentation.
🎯 Changes
New Files Added
frontend/src/locale/src/tw.json(171 translation entries)frontend/src/locale/src/HelpDoc/tw/AccessLists.mdfrontend/src/locale/src/HelpDoc/tw/Certificates.mdfrontend/src/locale/src/HelpDoc/tw/DeadHosts.mdfrontend/src/locale/src/HelpDoc/tw/ProxyHosts.mdfrontend/src/locale/src/HelpDoc/tw/RedirectionHosts.mdfrontend/src/locale/src/HelpDoc/tw/Streams.mdfrontend/src/locale/src/HelpDoc/tw/index.tsModified Files
frontend/check-locales.cjs- Addedtwlocale configurationfrontend/src/locale/IntlProvider.tsx- Registered Traditional Chinese localefrontend/src/locale/src/HelpDoc/index.ts- Registeredtwhelp documentationfrontend/src/locale/src/lang-list. json- Added locale display name🌐 Locale Details
twzh-TWTW(Taiwan)✨ Features
✅ Complete UI translation in Traditional Chinese
✅ All help documentation translated
✅ Proper flag icon mapping (Taiwan flag)
✅ Follows existing locale implementation pattern
✅ No breaking changes to existing code
✅ Maintains backward compatibility
💡 Additional Notes
This translation uses Traditional Chinese characters commonly used in Taiwan (台灣正體), which differs from Simplified Chinese (zh-CN). The translation maintains technical accuracy while using terminology familiar to Taiwanese users.
🙏 Acknowledgments
Thank you for considering this contribution! Traditional Chinese support will benefit many users in Taiwan, Hong Kong, and Macau regions.