From 4e412f18bbebaa57aa43eb5c606ba42019611473 Mon Sep 17 00:00:00 2001 From: Orhan Polat Date: Fri, 16 Jan 2026 11:59:34 +0300 Subject: [PATCH] fix: resolve lint issues in IntlProvider and HelpDoc --- frontend/src/locale/IntlProvider.tsx | 6 ++---- frontend/src/locale/src/HelpDoc/index.ts | 7 +------ 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/frontend/src/locale/IntlProvider.tsx b/frontend/src/locale/IntlProvider.tsx index d6cd322c..9d0bd3f3 100755 --- a/frontend/src/locale/IntlProvider.tsx +++ b/frontend/src/locale/IntlProvider.tsx @@ -9,16 +9,14 @@ import langId from "./lang/id.json"; import langIt from "./lang/it.json"; import langJa from "./lang/ja.json"; import langKo from "./lang/ko.json"; -import langList from "./lang/lang-list.json"; import langNl from "./lang/nl.json"; import langPl from "./lang/pl.json"; import langRu from "./lang/ru.json"; import langSk from "./lang/sk.json"; import langVi from "./lang/vi.json"; import langZh from "./lang/zh.json"; -import langKo from "./lang/ko.json"; -import langBg from "./lang/bg.json"; import langTr from "./lang/tr.json"; +import langList from "./lang/lang-list.json"; // first item of each array should be the language code, // not the country code @@ -129,6 +127,6 @@ const T = ({ ); }; -console.log("L:", localeOptions); +//console.log("L:", localeOptions); export { localeOptions, getFlagCodeForLocale, getLocale, createIntl, changeLocale, intl, T }; diff --git a/frontend/src/locale/src/HelpDoc/index.ts b/frontend/src/locale/src/HelpDoc/index.ts index 8f0678cf..cc6c5b22 100644 --- a/frontend/src/locale/src/HelpDoc/index.ts +++ b/frontend/src/locale/src/HelpDoc/index.ts @@ -14,13 +14,8 @@ import * as ru from "./ru/index"; import * as sk from "./sk/index"; import * as vi from "./vi/index"; import * as zh from "./zh/index"; - -const items: any = { en, de, es, ja, sk, zh, pl, ru, it, vi, nl, bg, ko, ga, id, fr }; -import * as ko from "./ko/index"; -import * as bg from "./bg/index"; import * as tr from "./tr/index"; - -const items: any = { en, de, ja, sk, zh, pl, ru, it, vi, nl, bg, ko, tr }; +const items: any = { en, de, es, ja, sk, zh, pl, ru, it, vi, nl, bg, ko, ga, id, fr, tr }; const fallbackLang = "en";