설정 페이지 및 관련 컴포넌트 다국어(localization) 적용

- 설정 페이지 전체 텍스트 다국어 지원
- 로그인 방식 선택 bottom sheet 다국어 적용
- 서비스 언어 선택 bottom sheet 다국어 적용
- 앱브리지에서 언어 설정 조회 기능 추가
- 페이지 로드 시 앱브리지 언어 설정으로 초기화
- AppLanguage enum 값 변경 (KO/EN → ko/en)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Jay Sheen
2025-10-28 13:15:09 +09:00
parent e125a73228
commit 95cc870dbc
8 changed files with 203 additions and 77 deletions

View File

@@ -66,6 +66,9 @@ interface UseAppBridgeReturn {
getNotificationSetting: () => Promise<boolean>;
setNotificationSetting: (enabled: boolean) => Promise<NotificationSettingResponse>;
// 언어 설정 조회
getLanguage: () => Promise<string>;
}
export const useAppBridge = (): UseAppBridgeReturn => {
@@ -294,6 +297,14 @@ export const useAppBridge = (): UseAppBridgeReturn => {
}
}, [isAndroid]);
const getLanguage = useCallback(async (): Promise<string> => {
if (!isNativeEnvironment) {
return localStorage.getItem('i18nextLng') || 'ko';
}
const result = await appBridge.safeCall(() => appBridge.getLanguage(), 'ko');
return result || 'ko';
}, [isNativeEnvironment]);
return {
isNativeEnvironment,
isAndroid,
@@ -319,6 +330,7 @@ export const useAppBridge = (): UseAppBridgeReturn => {
openAppSettings,
getLoginType,
getNotificationSetting,
setNotificationSetting
setNotificationSetting,
getLanguage
};
};