Skip to content

fix(i18n): register missing Ukrainian locale files (contentTemplates, yearInReview) - #15506

Open
AndriyRyabchenko wants to merge 2 commits into
chatwoot:developfrom
AndriyRyabchenko:fix-uk-locale-imports
Open

fix(i18n): register missing Ukrainian locale files (contentTemplates, yearInReview)#15506
AndriyRyabchenko wants to merge 2 commits into
chatwoot:developfrom
AndriyRyabchenko:fix-uk-locale-imports

Conversation

@AndriyRyabchenko

@AndriyRyabchenko AndriyRyabchenko commented Aug 17, 2026

Copy link
Copy Markdown

Summary

app/javascript/dashboard/i18n/locale/uk/index.js does not import two locale files that exist and are already translated into Ukrainian, so their strings fall back to English in the dashboard:

  • contentTemplates.json
  • yearInReview.json

Changes

Add the two missing import statements and their spreads, in alphabetical order to match the existing convention. No string content is changed (handled via Crowdin).

Note on snooze

snooze.json is also unregistered for uk, but it is intentionally left out of this PR: its SNOOZE_PARSER.UNITS are mistranslated (WEEKдень, MONTHтиждень, YEARмісяць, plus untranslated plurals). Registering it as-is would make the snooze parser misread typed input. It should be corrected via Crowdin first, then registered separately. Thanks to the automated review for catching this.

The Ukrainian locale index does not import contentTemplates.json, snooze.json
and yearInReview.json, so their already-translated strings fall back to English
in the dashboard. Add the missing imports and spreads.
@itoqa

itoqa Bot commented Aug 17, 2026

Copy link
Copy Markdown

⚠️ Ito did not review this pull request because the PR author doesn't have an Ito seat.

An admin can assign one in Ito team settings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0f1aead00d

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

...settings,
...signup,
...sla,
...snooze,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Correct the snooze unit mappings before registering them

For users whose resolved locale is Ukrainian, spreading this bundle activates incorrect parser tokens already present in uk/snooze.json: WEEK is день, MONTH is тиждень, and YEAR is місяць. buildReplacementPairsUncached converts those localized values according to their keys, so entering 1 тиждень is parsed as one month and 1 місяць as one year, silently snoozing the conversation until the wrong date. Correct these translations through the project's translation workflow before exposing this bundle, or leave it unregistered until they are corrected.

AGENTS.md reference: AGENTS.md:L88-L90

Useful? React with 👍 / 👎.

Drop snooze from this change: uk/snooze.json has swapped SNOOZE_PARSER unit
tokens (WEEK=день, MONTH=тиждень, YEAR=місяць) that would make the snooze
parser misread input. Leave snooze unregistered until fixed via Crowdin.
@AndriyRyabchenko AndriyRyabchenko changed the title fix(i18n): register missing Ukrainian locale files in uk/index.js fix(i18n): register missing Ukrainian locale files (contentTemplates, yearInReview) Aug 17, 2026
@AndriyRyabchenko

Copy link
Copy Markdown
Author

Good catch on the snooze parser — confirmed. I've dropped snooze from this PR and kept only contentTemplates and yearInReview (display strings, no parser impact). uk/snooze.json needs its SNOOZE_PARSER.UNITS corrected via Crowdin before it can be safely registered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant