Initial commit

This commit is contained in:
belviskhoremk
2026-05-08 13:01:47 +00:00
parent 864bbd389e
commit 9e663bdc8b
64 changed files with 20910 additions and 74 deletions

11
src/i18n/index.ts Normal file
View File

@@ -0,0 +1,11 @@
import { useLanguageStore } from '../stores/languageStore';
import { en } from './en';
import { fr } from './fr';
const translations = { en, fr };
export function useTranslation() {
const language = useLanguageStore(s => s.language);
const t = translations[language] ?? en;
return { t, language };
}