feat(i18n): 홈 화면 하드코딩 문구를 I18n 키로 통일한다

This commit is contained in:
Yu Sung
2026-04-01 11:33:26 +09:00
parent 7285c5367d
commit 201f4c8139
7 changed files with 105 additions and 49 deletions

View File

@@ -301,15 +301,15 @@
### Home (9)
#### Group 1 (1-9)
- [ ] `SodaLive/Sources/Home/HomeAuditionView.swift`
- [ ] `SodaLive/Sources/Home/HomeCreatorRankingItemView.swift`
- [ ] `SodaLive/Sources/Home/HomeLatestContentView.swift`
- [ ] `SodaLive/Sources/Home/HomeLiveItemView.swift`
- [ ] `SodaLive/Sources/Home/HomeTabView.swift`
- [ ] `SodaLive/Sources/Home/HomeWeeklyChartItemView.swift`
- [ ] `SodaLive/Sources/Home/HomeWeeklyChartView.swift`
- [ ] `SodaLive/Sources/Home/RecommendChannel/RecommendChannelContentItemView.swift`
- [ ] `SodaLive/Sources/Home/RecommendChannel/RecommendChannelItemView.swift`
- [x] `SodaLive/Sources/Home/HomeAuditionView.swift`
- [x] `SodaLive/Sources/Home/HomeCreatorRankingItemView.swift`
- [x] `SodaLive/Sources/Home/HomeLatestContentView.swift`
- [x] `SodaLive/Sources/Home/HomeLiveItemView.swift`
- [x] `SodaLive/Sources/Home/HomeTabView.swift`
- [x] `SodaLive/Sources/Home/HomeWeeklyChartItemView.swift`
- [x] `SodaLive/Sources/Home/HomeWeeklyChartView.swift`
- [x] `SodaLive/Sources/Home/RecommendChannel/RecommendChannelContentItemView.swift`
- [x] `SodaLive/Sources/Home/RecommendChannel/RecommendChannelItemView.swift`
### IAP (1)
- [x] `SodaLive/Sources/IAP/StoreManager.swift`
@@ -866,3 +866,29 @@
- LSP 진단: SourceKit 단독 해석 환경에서 외부 모듈/프로젝트 심볼 미해결 오류(`Kingfisher`, `RichText`, `AppState` 등)가 보고되나, 동일 변경셋은 `xcodebuild` 실컴파일 통과로 검증 완료.
- 빌드 검증: `SodaLive`, `SodaLive-dev` Debug 빌드 모두 성공(`** BUILD SUCCEEDED **`).
- 테스트 검증: 두 스킴 모두 `Scheme ... is not currently configured for the test action.`로 테스트 액션 미구성 확인(코드 실패 아님, 스킴 제약).
### 17차 구현 (Home 모듈 Group 1, 9개 파일 처리, 2026-04-01)
- 무엇/왜/어떻게:
- 무엇: `변경 대상 파일 전체 목록``Home` Group 1(9개 파일)을 전수 점검하고, 런타임 사용자 노출 하드코딩 문구를 `I18n.*` 참조로 전환했다.
- 왜: 홈 탭의 섹션 헤더/버튼/본인인증 다이얼로그/오류 문구가 하드코딩 상태여서 모듈 간 i18n 접근 방식이 일관되지 않았기 때문이다.
- 어떻게: explore/librarian 병렬 탐색 + `grep`/`ast_grep_search`/`read` 직접 검증으로 런타임 문자열과 Preview 샘플 문자열을 분리한 뒤, `I18n.swift``I18n.Home` 네임스페이스를 추가하고 호출부를 치환했다.
- 실행 명령/도구:
- `task(subagent_type="explore", ...)` x2 (`bg_7a1064e4`, `bg_2856a903`)
- `task(subagent_type="librarian", ...)` x1 (`bg_2220e841`)
- `background_output(task_id=...)` x3 (위 3개 task 결과 수집)
- `grep("\"[^\"]*[가-힣][^\"]*\"", include=*.swift, path=SodaLive/Sources/Home)`
- `grep("I18n\\.|String\\(localized:|NSLocalizedString\\(|LocalizedStringKey\\(", include=*.swift, path=SodaLive/Sources/Home)`
- `ast_grep_search(pattern="Text(\"$TEXT\")", lang=swift, paths=[SodaLive/Sources/Home])`
- `bash: rg -n ...` (`command not found` 확인)
- `lsp_diagnostics(filePath=변경 파일 전체)`
- `xcodebuild -workspace "SodaLive.xcworkspace" -scheme "SodaLive" -configuration Debug build`
- `xcodebuild -workspace "SodaLive.xcworkspace" -scheme "SodaLive-dev" -configuration Debug build`
- `xcodebuild -workspace "SodaLive.xcworkspace" -scheme "SodaLive" test`
- `xcodebuild -workspace "SodaLive.xcworkspace" -scheme "SodaLive-dev" test`
- 결과:
- `I18n.swift``I18n.Home` 키셋 추가: `liveNowSectionTitle`, `popularCreatorSectionTitle`, `onlyOnVoiceOnSectionTitle`, `popularCharacterChatSectionTitle`, `recommendChannelSectionTitle`, `freeContentSectionTitle`, `pointRentalContentSectionTitle`, `recommendContentSectionTitle`, `weeklyChartSectionTitle`, `RecommendChannel.contentLabel`.
- 치환 완료 파일(실치환 5개): `HomeCreatorRankingItemView.swift`, `HomeLatestContentView.swift`, `HomeTabView.swift`, `HomeWeeklyChartView.swift`, `RecommendChannelItemView.swift`.
- 점검만 수행(실치환 없음 4개): `HomeAuditionView.swift`, `HomeLiveItemView.swift`, `HomeWeeklyChartItemView.swift`, `RecommendChannelContentItemView.swift` (잔여 한글은 Preview 샘플 데이터만 존재).
- 공통 키 재사용 정리: `I18n.Common.viewAll`, `I18n.Common.latestContent`, `I18n.Settings.companyInfo`, `I18n.Chat.Auth.*`, `I18n.LiveRoom.follow/following` 적용.
- Oracle 후속 보정: 홈 FAB 버튼 문구를 제목형 키(`uploadTitle`)에서 CTA 전용 키(`I18n.CreateContent.uploadAction`)로 분리해 영문/일문 의미를 버튼 행동과 일치시킴.
- Home Group 1 체크박스 9개 `- [x]` 완료 반영.