feat: fix alot of issues
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user