Fix: 앱 언어 설정이 웹페이지에 자동으로 적용되도록 수정

- i18n 초기화 시 네이티브 앱 언어 설정을 확인하여 적용
- 네이티브 환경: 앱 언어를 가져와 localStorage에 저장
- 웹 환경: localStorage에서 저장된 언어 사용
- setting-page에서 언어 동기화 시 localStorage 업데이트 추가

🤖 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-30 14:41:14 +09:00
parent 9d0b446ae8
commit 531c6e4be6
2 changed files with 31 additions and 1 deletions

View File

@@ -87,6 +87,7 @@ export const SettingPage = () => {
// i18n 언어도 동기화
if (i18n.language !== language) {
i18n.changeLanguage(language);
localStorage.setItem('i18nextLng', language);
}
});
}, [getLanguage, i18n]);