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

Function to retrieve the correct translation for the current language #208

Open
julianlaibach opened this issue Jan 9, 2023 · 0 comments

Comments

@julianlaibach
Copy link

Thank you for this great translation package!

In my case i would need a function like $t but for objects containing different translations like this:

{
 de: "dieses paket ist klasse",
 en: "this package is great"
}

i need this functionality because i receive data from an api backend and would like to display those in the currently set language.

Tried it by my own but had no success with factory stores. The values were not updated if i changed the language on runtime.

Please let me know if this makes sense.

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