From abf7e6ffd80ac6958d136d1be348afee8b094da6 Mon Sep 17 00:00:00 2001 From: physcik Date: Sat, 11 Apr 2026 21:31:05 +0500 Subject: more elements --- front/src/Locales/Locales.ts | 6 +++--- front/src/Locales/ru_RU.ts | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'front/src/Locales') diff --git a/front/src/Locales/Locales.ts b/front/src/Locales/Locales.ts index 6e6a33e..f404fbe 100644 --- a/front/src/Locales/Locales.ts +++ b/front/src/Locales/Locales.ts @@ -18,10 +18,10 @@ function getCurrentLocale(lang: AllowedLanguages): Language { } export function GetLocalizedString(query: string, lang: AllowedLanguages): string { - query = query.toLowerCase(); + var lowerQuery = query.toLowerCase(); const locale = getCurrentLocale(lang); - const found = locale.LocalizedStrings.get(query); - if (found == undefined) return defaultLocale.LocalizedStrings.get(query) || query; + const found = locale.LocalizedStrings.get(lowerQuery); + if (found == undefined) return defaultLocale.LocalizedStrings.get(lowerQuery) || query; return found; } diff --git a/front/src/Locales/ru_RU.ts b/front/src/Locales/ru_RU.ts index a0592be..6c804b9 100644 --- a/front/src/Locales/ru_RU.ts +++ b/front/src/Locales/ru_RU.ts @@ -8,6 +8,7 @@ lang.LocalizedStrings = new Map([ ["contents", "Содержание"], ["classes list", "Список классов"], ["weapons", "Оружие"], + ["weapons index", "Список вооружения"], ]); export default lang; -- cgit v1.3