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

Recommendation for gettext? #88

Open
peaceful-james opened this issue Nov 30, 2024 · 1 comment
Open

Recommendation for gettext? #88

peaceful-james opened this issue Nov 30, 2024 · 1 comment
Labels

Comments

@peaceful-james
Copy link
Contributor

What is the recommended way to translate the validation error messages?
Maybe it would be good to add this to the repo? I can work on a PR if it is needed.

@szymon-jez
Copy link
Member

There is no recommended way here.

In the codebase in which I was using ExPhoneNumber most extensively there is a wrapper/utility module (Utilities.Phone) which outputs as errors :invalid_country_code or :invalid_phone_number and then higher up the line those are output as translated user friendly text. And this was sufficient.

Having a tutorial how to handle the translations problem could be helpful.

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

No branches or pull requests

2 participants