-
Notifications
You must be signed in to change notification settings - Fork 37
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
Example of Update_lang for Automatic Translation #53
Comments
EDIT: oh sorry, I misread your message, you meant for Automatic Translation. Indeed this is not something that we tested thoroughly yet. If could post some minimal example with the error, or unexpected behaviour, we could help to debug further. Thanks! In general, in-browser translations with |
I am sorry for the vague terminology and description of the problem. Thank you for the clarification; I thought I might have missed something obvious. Following your request, I took shiny.i18n/examples/live_language_change/browser_app.R and replaced the functions i18n$t() with i18n$at(). Automatic Translation works perfectly if you set up the language key beforehand, but it wont change in a live_language_change scenario.
|
Thank you @Hamidburg for reporting that. That's definitely a bug, we will have to investigate, hopefully, will come back with some solution soon. |
The root cause of this bug is that browser side translation uses dictionaries that are passed to the browser during initialization. Automatic translation doesn't have dictionaries upfront so the translation doesn't work. API usage should be implemented on browser side. |
Hi there,
I was trying to get the automatic translation to work with the update_lang live example.
Although it is possible to initate the translation, it wont display in labels. working with "i18n$t()" works perfectly fine.
Isit maybe not supported (yet)?
The text was updated successfully, but these errors were encountered: