initial commit

This commit is contained in:
2026-03-12 06:37:16 +08:00
commit c31ebd35e7
41 changed files with 6272 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
import { useLanguage } from "../components/LanguageProvider"
import { en } from "../locales/en"
import { fa } from "../locales/fa"
const dictionaries = { en, fa }
export function useTranslation() {
const { language, setLanguage } = useLanguage()
return {
t: dictionaries[language],
lang: language,
setLanguage
}
}