mirror of
http://88.130.71.182:3000/BlitTech/contexta_mb.git
synced 2026-06-13 10:45:33 +00:00
Initial commit
This commit is contained in:
11
src/i18n/index.ts
Normal file
11
src/i18n/index.ts
Normal 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 };
|
||||
}
|
||||
Reference in New Issue
Block a user