diff options
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; |
