Files
sapiens-mobile/client/src/hooks/useLanguage.ts
jungwoo choi 919afe56f2 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>
2025-10-23 14:30:25 +09:00

11 lines
323 B
TypeScript

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 };
}