Skip to content
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

Merged
merged 2 commits into from
Mar 25, 2023
Merged

feat: Add i18n support for Chinese language #142

merged 2 commits into from
Mar 25, 2023

Conversation

Jungley8
Copy link
Contributor

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.

@vercel
Copy link

vercel bot commented Mar 25, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
chatbot-ui ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 25, 2023 at 3:25PM (UTC)

@mckaywrigley
Copy link
Owner

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.

@mckaywrigley
Copy link
Owner

(ps... mind resolving the merge conflict? haha)

@mckaywrigley
Copy link
Owner

And i suppose the best way to keep the translations up to date is rely on community mostly, yeah?

@Jungley8
Copy link
Contributor Author

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)

@Jungley8
Copy link
Contributor Author

It seems to be not working in the Preview environment.

@mckaywrigley
Copy link
Owner

Trying with 'zh' as defaultLocale and it doesn't seem to be working. Maybe a slight error in the config?

@Jungley8 Jungley8 changed the title feat: Add i18n support for Chinese language WIP: feat: Add i18n support for Chinese language Mar 25, 2023
@Jungley8 Jungley8 changed the title WIP: feat: Add i18n support for Chinese language feat: Add i18n support for Chinese language Mar 25, 2023
@Jungley8
Copy link
Contributor Author

https://chatbot-qtawokyzt-mckay-personal.vercel.app/zh

It's now working in the preview environment. @mckaywrigley

@Jungley8 Jungley8 mentioned this pull request Mar 25, 2023
@mckaywrigley
Copy link
Owner

Working on my end. Merging. Thanks again for helping expand to international support! :)

@mckaywrigley mckaywrigley merged commit 92eab6c into mckaywrigley:main Mar 25, 2023
@Jungley8
Copy link
Contributor Author

Working on my end. Merging. Thanks again for helping expand to international support! :)

My pleasure!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants