diff options
| author | physcik <mynameisgennadiy@vk.com> | 2026-04-11 21:31:05 +0500 |
|---|---|---|
| committer | physcik <mynameisgennadiy@vk.com> | 2026-04-11 21:31:05 +0500 |
| commit | abf7e6ffd80ac6958d136d1be348afee8b094da6 (patch) | |
| tree | 4f33be81092169bae795c08b7e7a87e5f16dc51e /front/src/Locales | |
| parent | 49b5a4e03d0056e9df54d36891af7cc2ff7a8caa (diff) | |
more elements
Diffstat (limited to 'front/src/Locales')
| -rw-r--r-- | front/src/Locales/Locales.ts | 6 | ||||
| -rw-r--r-- | front/src/Locales/ru_RU.ts | 1 |
2 files changed, 4 insertions, 3 deletions
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<string, string>([ ["contents", "Содержание"], ["classes list", "Список классов"], ["weapons", "Оружие"], + ["weapons index", "Список вооружения"], ]); export default lang; |
