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

[Doubt] Do you support i18n? #883

Closed
mahesh-riddles opened this issue Dec 10, 2023 · 4 comments
Closed

[Doubt] Do you support i18n? #883

mahesh-riddles opened this issue Dec 10, 2023 · 4 comments

Comments

@mahesh-riddles
Copy link

Do you have any middleware to support i18n?
What is the algorithm to make i18n

Thanks

@pkieltyka
Copy link
Member

hi, yes you can make i18n work with chi

@mahesh-riddles
Copy link
Author

Can you please share the doc for this? Thanks for the support.

@mahesh-riddles
Copy link
Author

hi, yes you can make i18n work with chi

I think there is no i18n module with go chi out of the box. I understand that I have to implement my own ..
Am I right?
I can't find anything related with i18n.

What you are already offering is really big work... thanks for that..

@c2h5oh
Copy link
Contributor

c2h5oh commented Dec 27, 2023

@mahesh-riddles I think chi is quite a bit lower level than what you are looking for. It supports everything you'd need for i18n to work: all path matching is working on utf-8 strings, idn domains work, etc.

What it doesn't include out of the box is higher level i18n features, like automated redirects to url equivalent for another language or error message translation. Both of those things are possible and could be easily built on top of chi, but out of scope for the core package.

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

No branches or pull requests

3 participants