From f022504ef91ddb535587078b0f5dba9c4e1618a8 Mon Sep 17 00:00:00 2001 From: EVGENY M <168018528+rjohny55@users.noreply.github.com> Date: Mon, 11 Aug 2025 13:30:35 +0600 Subject: [PATCH] Support Russian in UI Update config.ts (#9361) add ru ### What problem does this PR solve? _Briefly describe what this PR aims to solve. Include background context that will help reviewers understand the purpose of the PR._ ### Type of change - [x] New Feature (non-breaking change which adds functionality) Co-authored-by: Yingfeng --- web/src/locales/config.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web/src/locales/config.ts b/web/src/locales/config.ts index 88bfec05c..cd8d928f5 100644 --- a/web/src/locales/config.ts +++ b/web/src/locales/config.ts @@ -12,6 +12,7 @@ import translation_ja from './ja'; import translation_pt_br from './pt-br'; import { createTranslationTable, flattenObject } from './until'; import translation_vi from './vi'; +import translation_ru from './ru'; import translation_zh from './zh'; import translation_zh_traditional from './zh-traditional'; @@ -23,12 +24,14 @@ const resources = { [LanguageAbbreviation.Ja]: translation_ja, [LanguageAbbreviation.Es]: translation_es, [LanguageAbbreviation.Vi]: translation_vi, + [LanguageAbbreviation.Ru]: translation_ru, [LanguageAbbreviation.PtBr]: translation_pt_br, [LanguageAbbreviation.De]: translation_de, [LanguageAbbreviation.Fr]: translation_fr, }; const enFlattened = flattenObject(translation_en); const viFlattened = flattenObject(translation_vi); +const ruFlattened = flattenObject(translation_ru); const esFlattened = flattenObject(translation_es); const zhFlattened = flattenObject(translation_zh); const jaFlattened = flattenObject(translation_ja); @@ -40,6 +43,7 @@ export const translationTable = createTranslationTable( [ enFlattened, viFlattened, + ruFlattened, esFlattened, zhFlattened, zh_traditionalFlattened, @@ -51,6 +55,7 @@ export const translationTable = createTranslationTable( [ 'English', 'Vietnamese', + 'Rus', 'Spanish', 'zh', 'zh-TRADITIONAL',