feat: Remove language detection

The language detection mechanism has been removed to streamline the translation process and ensure a consistent user experience across all locales. This change aims to simplify the i18n setup and minimize potential complexities associated with dynamic language switching.
This commit is contained in:
n4ze3m 2024-10-26 15:47:00 +05:30
parent 9cc309e9fd
commit f01f9d0482

View File

@ -13,12 +13,9 @@ import { fa } from "./lang/fa";
import { de } from "./lang/de";
import { da } from "./lang/da";
import { no } from "./lang/no";
import LanguageDetector from 'i18next-browser-languagedetector';
const supportedLanguages = ['en', 'zh', 'ja', 'fa', 'de', 'da', 'no', 'es', 'fr', 'it', 'ml', 'pt-BR', 'ru', 'zh-CN', 'ru-RU', 'ja-JP'];
i18n
.use(LanguageDetector)
.use(initReactI18next)
.init({
resources: {