feat: add i18n infrastructure and language selector

Co-authored-by: Wikid82 <176516789+Wikid82@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-12-18 18:47:41 +00:00
parent 1981dd371b
commit e912bc4c80
14 changed files with 892 additions and 3 deletions

View File

@@ -0,0 +1,10 @@
import { useContext } from 'react'
import { LanguageContext, LanguageContextType } from '../context/LanguageContextValue'
export function useLanguage(): LanguageContextType {
const context = useContext(LanguageContext)
if (!context) {
throw new Error('useLanguage must be used within a LanguageProvider')
}
return context
}