-
Notifications
You must be signed in to change notification settings - Fork 436
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
Language problem on FakeI18n #606
Comments
Hi @Nuxor3000, what user language do you have in your browser? |
italian |
Oh and that's occuring both in firefox and chrome in the same way (I didn't try others) |
And I also can't manage to find how to set a language different from english for the created user when app is created |
I will take a look at this asap, thanks for letting me know.
El mar, 25 ene 2022 a la(s) 15:14, Nuxor3000 ***@***.***)
escribió:
… And I also can't manage to find how to set a language different from
english for the created user when app is created
—
Reply to this email directly, view it on GitHub
<#606 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAC5SGFWFGMHXA2NC3JWXTUX3SBJANCNFSM5MYWRB2Q>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you commented.Message ID:
***@***.***>
|
@Nuxor3000 look at the Are you trying to display the lang on the agent panel or the webchat? |
Yes I added it to the langs to use it even if with a not completely translated version. To detail a bit the problem to help in finding the source of the problem : In "login form" or in "accept invitation form", |
Uhm... could you provide a screen recording? |
I18n-bug-login-chaskiq.mov |
In the line i18n.locale = document.documentElement.lang || 'en' in app/javascript/src/shared/FakeI18n.ts
document.documentElement.lang is empty
I replaced it by :
const currentLang = navigator.language || navigator['userLanguage'];
i18n.locale = currentLang || 'en';
which set the correct language but when connecting or failing, language is back to english
Do you have a clue why ?
The text was updated successfully, but these errors were encountered: