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:
@@ -87,6 +87,7 @@ export const SettingPage = () => {
|
||||
// i18n 언어도 동기화
|
||||
if (i18n.language !== language) {
|
||||
i18n.changeLanguage(language);
|
||||
localStorage.setItem('i18nextLng', language);
|
||||
}
|
||||
});
|
||||
}, [getLanguage, i18n]);
|
||||
|
||||
Reference in New Issue
Block a user