We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When changing Language to 'Português do Brasil' in admin/General the livechat You i18n text (https://github.com/RocketChat/Rocket.Chat/blob/0.74.0/packages/rocketchat-livechat/.app/client/views/message.html#L7) changes to 'Tu' (which is the text from Português translate) I think the problem is https://github.com/RocketChat/Rocket.Chat/blob/0.74.0/packages/rocketchat-ui-admin/client/admin.js#L99 that changes pt-BR to pt-br. If I change the option value from pt-br to pt-BR on the option value, the correct text is displayed
You
Português
pt-BR
pt-br
Rocketchat version: 0.74.0
The text was updated successfully, but these errors were encountered:
Removing toLowerCase from map could fix this problem, but I am not sure why toLowerCase was inserted.
toLowerCase
languages() { const languages = TAPi18n.getLanguages(); const result = Object.entries(languages) .map(([key, language]) => ({ ...language, key: key })) .sort((a, b) => a.key - b.key); result.unshift({ name: 'Default', en: 'Default', key: '', }); return result; }, isAppLanguage(key) { const languageKey = RocketChat.settings.get('Language'); return typeof languageKey === 'string' && languageKey.toLowerCase() === key.toLowerCase(); }
Sorry, something went wrong.
renatobecker-zz
Successfully merging a pull request may close this issue.
When changing Language to 'Português do Brasil' in admin/General the livechat
You
i18n text (https://github.com/RocketChat/Rocket.Chat/blob/0.74.0/packages/rocketchat-livechat/.app/client/views/message.html#L7) changes to 'Tu' (which is the text fromPortuguês
translate)I think the problem is https://github.com/RocketChat/Rocket.Chat/blob/0.74.0/packages/rocketchat-ui-admin/client/admin.js#L99 that changes
pt-BR
topt-br
. If I change the option value frompt-br
topt-BR
on the option value, the correct text is displayedRocketchat version: 0.74.0
The text was updated successfully, but these errors were encountered: