Skip to content

feat(i18n): add Russian localization - #6428

Open
itmafia89 wants to merge 2 commits into
redis:mainfrom
itmafia89:feat/i18n-add-localizations
Open

feat(i18n): add Russian localization#6428
itmafia89 wants to merge 2 commits into
redis:mainfrom
itmafia89:feat/i18n-add-localizations

Conversation

@itmafia89

@itmafia89 itmafia89 commented Aug 19, 2026

Copy link
Copy Markdown

Adds Russian language localization to RedisInsight.


Note

Low Risk
Localization-only changes with no auth, data, or business-logic impact; main risk is missing or incorrect translation keys versus en.json.

Overview
Adds Russian (ru) as a supported UI locale alongside English and Bulgarian.

Registers ru in SUPPORTED_LANGUAGES and LANGUAGE_NAMES (Русский), wires locales/ru.json into i18next in i18n.ts, and ships a full ~2,200-key Russian translation file covering the app (browser, analytics, settings, vector search, RDI, errors, etc.). Users can preview via existing ?lang= query param (e.g. ?lang=ru).

Reviewed by Cursor Bugbot for commit d84cbd2. Bugbot is set up for automated code reviews on this repo. Configure here.

@itmafia89
itmafia89 requested a review from a team as a code owner August 19, 2026 13:30
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@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: 4fa8e2cd6e

ℹ️ 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".

@@ -0,0 +1,2201 @@
{

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 Register the Russian locale with i18next

This translation file is currently unreachable: i18n.ts imports and registers only en and bg, while SUPPORTED_LANGUAGES and LANGUAGE_NAMES also omit ru, so Russian never appears in the language selector and ?lang=ru falls back to English. Import this resource and add Russian to the supported-language configuration so the localization can actually be selected.

Useful? React with 👍 / 👎.

Comment on lines +32 to +33
"analytics.clusterDetails.table.primaryNodes_one": "{{count}} основной узел",
"analytics.clusterDetails.table.primaryNodes_other": "{{count}} основных узлов",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Add the Russian few and many plural forms

Once Russian is registered, counts such as 2 and 5 select the Russian _few and _many categories, respectively, but this file provides only _one and _other for all pluralized messages. Because neither the selected key nor a base key exists, i18next proceeds to the English fallback, causing these messages to appear in English; add the required Russian plural categories with the appropriate grammar.

Useful? React with 👍 / 👎.

Comment thread redisinsight/ui/src/i18n/locales/ru.json

@cursor cursor 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.

Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

Fix All in Cursor

Reviewed by Cursor Bugbot for commit d84cbd2. Configure here.

"analytics.clusterDetails.table.networkInput": "Входящий сетевой трафик",
"analytics.clusterDetails.table.networkOutput": "Исходящий сетевой трафик",
"analytics.clusterDetails.table.primaryNodes_one": "{{count}} основной узел",
"analytics.clusterDetails.table.primaryNodes_other": "{{count}} основных узлов",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Russian plurals miss few/many forms

Medium Severity

Russian locale strings that take count only define _one and _other, matching English. i18next v23 uses CLDR rules, so ru also needs _few and _many. Counts such as 2–4 and 5–20 therefore miss the right form and can show the raw key or the grammatically wrong _other string across slow log, tree counts, bulk actions, and similar UI.

Additional Locations (2)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit d84cbd2. Configure here.

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.

2 participants