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

Question : best way to translate failf messages ? #290

Closed
kpym opened this issue Oct 24, 2020 · 2 comments
Closed

Question : best way to translate failf messages ? #290

kpym opened this issue Oct 24, 2020 · 2 comments

Comments

@kpym
Copy link

kpym commented Oct 24, 2020

If I want to write a non english interface, what is the best way to translate the error messages ?

@cornfeedhobo
Copy link

@kpym There is currently no easy way. There was some work on this in #114. I think if you really wanted to, you could maybe hijack stdout and do the translation there, but that seems like a mess.

I've been giving this a little thought recently on my fork and was looking at using the new i18n package, but didn't come up with an elegant API yet. If you'd like to try your hand at a PR on my fork, I'd definitely take a look!

@kpym
Copy link
Author

kpym commented Oct 24, 2020

@cornfeedhobo Thanks for your advice. Probably I'll use text/transform to hijack this.

@kpym kpym closed this as completed Oct 24, 2020
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

2 participants