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:
parent
9cc309e9fd
commit
f01f9d0482
@ -13,12 +13,9 @@ import { fa } from "./lang/fa";
|
|||||||
import { de } from "./lang/de";
|
import { de } from "./lang/de";
|
||||||
import { da } from "./lang/da";
|
import { da } from "./lang/da";
|
||||||
import { no } from "./lang/no";
|
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
|
i18n
|
||||||
.use(LanguageDetector)
|
|
||||||
.use(initReactI18next)
|
.use(initReactI18next)
|
||||||
.init({
|
.init({
|
||||||
resources: {
|
resources: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user