feat: fix alot of issues

This commit is contained in:
2026-10-08 00:25:30 +02:00
parent 8b1e38cb4d
commit e5580767a5
35 changed files with 127 additions and 615 deletions
+2 -2
View File
@@ -335,13 +335,13 @@ export function LanguageProvider({ children }: { children: ReactNode }) {
const [lang, setLangState] = useState<Lang>('en');
useEffect(() => {
const stored = localStorage.getItem('kooltab-lang') as Lang | null;
const stored = localStorage.getItem('kooltap-lang') as Lang | null;
if (stored === 'en' || stored === 'nl') setLangState(stored);
}, []);
function setLang(l: Lang) {
setLangState(l);
localStorage.setItem('kooltab-lang', l);
localStorage.setItem('kooltap-lang', l);
}
function t(key: string, params?: Record<string, string | number>): string {