feat(i18n): add Russian localization - #6428
Conversation
|
|
There was a problem hiding this comment.
💡 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 @@ | |||
| { | |||
There was a problem hiding this comment.
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 👍 / 👎.
| "analytics.clusterDetails.table.primaryNodes_one": "{{count}} основной узел", | ||
| "analytics.clusterDetails.table.primaryNodes_other": "{{count}} основных узлов", |
There was a problem hiding this comment.
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 👍 / 👎.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
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}} основных узлов", |
There was a problem hiding this comment.
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)
Reviewed by Cursor Bugbot for commit d84cbd2. Configure here.


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
ruinSUPPORTED_LANGUAGESandLANGUAGE_NAMES(Русский), wireslocales/ru.jsoninto i18next ini18n.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.