()
| 61 | }; |
| 62 | |
| 63 | export const useTranslation = (): LanguageContextType => { |
| 64 | const context = useContext(LanguageContext); |
| 65 | if (!context) { |
| 66 | throw new Error('useTranslation must be used within a LanguageProvider'); |
| 67 | } |
| 68 | return context; |
| 69 | }; |
no outgoing calls
no test coverage detected