-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
feat: Add i18n support for Chinese language #142
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This is incredible! Everything looks very clean too. This is a huge step in us being able to support the entire world. Thanks so much for this. |
(ps... mind resolving the merge conflict? haha) |
And i suppose the best way to keep the translations up to date is rely on community mostly, yeah? |
Yes, relying on the community is often a great way to keep translations up to date, especially for open-source projects. Engaging with the community can help ensure that translations remain accurate and relevant as your project evolves. To maintain up-to-date translations. (answered by ChatGPT) |
It seems to be not working in the Preview environment. |
Trying with 'zh' as defaultLocale and it doesn't seem to be working. Maybe a slight error in the config? |
https://chatbot-qtawokyzt-mckay-personal.vercel.app/zh It's now working in the preview environment. @mckaywrigley |
Working on my end. Merging. Thanks again for helping expand to international support! :) |
My pleasure! |
In the public/locales directory, create a subdirectory for each language you want to support (e.g., en, de, fr, es). Inside each subdirectory, create a JSON file for each namespace (e.g., common.json, home.json) containing the translations for that language.