feat: SAPIENS Mobile App - Initial commit
React Native mobile application for SAPIENS news platform. Consolidated all previous history into single commit. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
11
client/src/hooks/useLanguage.ts
Normal file
11
client/src/hooks/useLanguage.ts
Normal file
@ -0,0 +1,11 @@
|
||||
import { useLanguage as useLanguageContext } from '@/contexts/LanguageContext';
|
||||
|
||||
export function useLanguage() {
|
||||
const { language: selectedLanguage, setLanguage } = useLanguageContext();
|
||||
|
||||
const onLanguageChange = (lang: string) => {
|
||||
setLanguage(lang as any);
|
||||
};
|
||||
|
||||
return { selectedLanguage, onLanguageChange };
|
||||
}
|
||||
Reference in New Issue
Block a user