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

How to get translation from a specific locale different from context.locale ? #715

Open
elkSal opened this issue Oct 12, 2024 · 0 comments

Comments

@elkSal
Copy link

elkSal commented Oct 12, 2024

Hi all,

thanks a lot for the great package!
I would like to filter a list of items whose name is locale specific by checking both the locale specific name and the english name.
I can easily get the locale name wit the tr() funcion, but the english one is inaccessible if the current locale is not english.

I am using a workaround at the moment reading the Json Map of the translation file to get the english name, but it would be great if EasyLocalization allowed to retrieve the translation from a specific locale, for instance with tr(Locale("en")).

I saw there is already a similar [request](here #603)

Please let me know if there is another solution.

Thanks and have a great weekend :)

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

1 participant