-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
No internationalization of Livechat-texts #8312
Comments
@sampaiodiego I experienced in the past that i18n in my custom packages are also not effective: I had to move them to |
@mrsimpson the point is that the "livechat mini-app" is completely separated meteor app. his source code is inside rocket.chat package, but it is not part of rocket.chat itself. so for translations on "livechat mini-app", his own translations strings.. what happens sometimes (please see #8263 and #8267 - both affected our production build) is that you need to so, please try going into |
@sampaiodiego I tried a local build, |
I'm experiencing the same issue when translating the plugin according to the host-page's locale. These are the only texts I can't manage to get to work with Tapi18n. |
After some investigating, I found that the translation behavior is inconsistent packages/rocketchat-livechat/app/client/views/options.js
packages/rocketchat-livechat/app/i18n/fr.i18n.json
|
@sampaiodiego I just debugged the widget and noticed, that by the time the options menu is getting created, the Edit: Well, the sequence does not seem to be the issue. |
@mrsimpson from what @renatobecker discovered, seems like the livechat widget uses i18n files of rocket.chat app. he opened this PR #9966 , could you give it a look? |
@sampaiodiego @renatobecker basically merged all the translations into the translations of the main app. While I believe this works, it's a bit ... strange to me. However, I also noticed that translations added in other packages than So if giving up the i18n-files in the livechat-app itself is your solution, I can of course live with that. |
unfortunately the way we build and serve the livechat-app, makes if we had it as a different app/process running, it should work as expected. |
@sampaiodiego yup, understood. I still don't know whether the TAPi18n-package is a blessing or a curse, but the configuration definitely is the latter. |
@mrsimpson, I tried to load the livechat translation files during the |
@renatobecker I tried the same and many hours of my life reconfiguring TAPi18n. Without any success. I was hoping you had ad better connection to the Javascript library world ;) |
@mrsimpson I've also spent many hours of my life today fighting against TAPi18n package. the solution I've found was similar to what you said, but I did on Rocket.Chat build itself, check it out this will let everybody with duplicated files on filesystem, but they ignored by git, they will probably don't even notice. what do you guys think on this implementation? |
@sampaiodiego I believe that's good enough!
|
that might help. =) |
Good news it that Rocket.Chat Apps makes usage of the i18n package's runtime configuration of languages. However, this is only on Rocket.Chat side and not on the LiveChat side since the Apps don't touch anything related to the LiveChat. Just thought I'd share since it has worked fine as far as I can tell from the current uses. Rocket.Chat/packages/rocketchat-apps/client/orchestrator.js Lines 27 to 41 in a9aea36
|
Hello, is there a PR or a plan to make it so the translations on the LiveChat are actually used? I took a quick look at the source code and it looks to me like it should at least be getting the language from the browser, but for our installation (purelly installing the docker container) the Livehcat is always in english and never uses any other language (no matter the application language or the browser language or any other thing). |
Now that the old/legacy livechat widget is gone, this issue doesn't apply anymore. If you have new suggestions or additions to the new livechat widget, please refer to https://github.com/RocketChat/Rocket.Chat.Livechat |
@AndreVolpi Did you got this fixed? We are facing the same issue. |
No, we gave up on it as a company. (also having the chat didn't give a positive impact on our website so didn't make sense) |
Description:
In the livechat-widget, texts are partly not translated although the translation is available in the source.
You can also see that the user's language is properly detected. Texts which are also available in the
rocketchat-i18n
-package are properly translated, such asType_your_message
Server Setup Information:
Steps to Reproduce:
develop
@ RCThe text was updated successfully, but these errors were encountered: