Compare commits

..

1 Commits

Author SHA1 Message Date
Stavros
2f4f2505d7 fix: fix language selector and language detection 2025-12-08 19:03:41 +02:00
3 changed files with 8 additions and 7 deletions

View File

@@ -1,5 +1,5 @@
# Site builder
FROM oven/bun:1.3.4-alpine AS frontend-builder
FROM oven/bun:1.3.3-alpine AS frontend-builder
WORKDIR /frontend

View File

@@ -1,5 +1,5 @@
# Site builder
FROM oven/bun:1.3.4-alpine AS frontend-builder
FROM oven/bun:1.3.3-alpine AS frontend-builder
WORKDIR /frontend

View File

@@ -2,6 +2,7 @@ import i18n from "i18next";
import { initReactI18next } from "react-i18next";
import LanguageDetector from "i18next-browser-languagedetector";
import resourcesToBackend from "i18next-resources-to-backend";
import { languages } from "./locales";
i18n
.use(LanguageDetector)
@@ -14,12 +15,12 @@ i18n
.init({
fallbackLng: "en",
debug: import.meta.env.MODE === "development",
interpolation: {
escapeValue: false,
},
nonExplicitSupportedLngs: true,
supportedLngs: Object.keys(languages),
load: "currentOnly",
detection: {
lookupLocalStorage: "tinyauth-lang",
},
});
export default i18n;