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

Error with help port in Ukrainian locale #8967

Open
GrygorievEvgeniy opened this issue Feb 19, 2024 · 4 comments
Open

Error with help port in Ukrainian locale #8967

GrygorievEvgeniy opened this issue Feb 19, 2024 · 4 comments
Labels
🐞 bug Something isn't working 🍐 feature/helpcenter Issues related to help center need-more-info This issue does not have enough information to start working on it.

Comments

@GrygorievEvgeniy
Copy link

Describe the bug

When open article in Ukrainian locale, there is a error. "We're sorry, but something went wrong.
If you are the application owner check the logs for more information."
In logs found error - chatwoot-web.1[1964901]: [0dfc6552-b3f2-4908-94b8-d7e8f3362582] I18n::InvalidLocale ("uk_UA" is not a valid locale):

To Reproduce

  1. Create help portal with locale by default Ukrainian
  2. Create article
  3. Open portal and open article

Expected behavior

No response

Environment

Linux VM

Cloud Provider

None

Platform

Browser

Operating system

Ubuntu 22.

Browser and version

Chrome

Docker (if applicable)

No response

Additional context

No response

Copy link

linear bot commented Feb 19, 2024

@pranavrajs pranavrajs added 🐞 bug Something isn't working and removed Bug labels Feb 22, 2024
Copy link
Member

We cannot reproduce this error on our end (v3.6.0). Can you please share a screencast and the version of Chatwoot you are using?

Copy link
Member

Screenshot 2024-02-22 at 3.54.23 PM.png

@pranavrajs pranavrajs added 🍐 feature/helpcenter Issues related to help center need-more-info This issue does not have enough information to start working on it. labels Feb 22, 2024 — with Linear
@KonstantinReido
Copy link

@pranavrajs, most likely to reproduce the issue you need to open one of the articles, not the main page.

It is the same as my issue #9271

Short explanation:

The code will not work (in Chatwoot's env / rails c)

I18n.with_locale("uk_UA") { puts I18n.t('hello') }

but this will

I18n.with_locale(:uk) { puts I18n.t('hello') }

The codes of languages available for portals (in the dropdown on your UI) should be the same as a result of I18n.available_locales.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working 🍐 feature/helpcenter Issues related to help center need-more-info This issue does not have enough information to start working on it.
Projects
None yet
Development

No branches or pull requests

3 participants