Skip to content

feat(l10n): add Russian localization and AI Coach language awareness - #151

Open
foureight84 wants to merge 1 commit into
saksham2001:mainfrom
foureight84:feat/l10n-russian
Open

foureight84 wants to merge 1 commit into
saksham2001:mainfrom
foureight84:feat/l10n-russian

Conversation

@foureight84

Copy link
Copy Markdown
Contributor

Summary

Ports Android Russian localization & AI Coach language awareness (PulseLoopAndroid PRs #145 & #146) to iOS:

  • String Catalog (PulseLoop/Localizable.xcstrings): Added ru localization with 1,346 EN → RU entries (matched from Android values-ru/strings.xml + iOS-specific UI strings, "coach_language", and "Opens %@").
  • Project configuration (PulseLoop.xcodeproj/project.pbxproj): Added ru to knownRegions and disabled STRING_CATALOG_GENERATE_SYMBOLS to avoid symbol collisions across case-variant UI strings.
  • SwiftUI localization wiring:
    • Updated PageChrome, SettingsFormComponents, SettingsComponents, SettingsView, RootViews, CoachView, and MealDetailView so static headers, labels, tabs, and cold-start prompts localize properly while keeping dynamic user input (MealDetailView meal names) and technical model IDs verbatim (trailingValue).
    • Localized VoiceOver "Opens %@" hints.
  • AI Coach language awareness (CoachLanguage):
    • Added CoachLanguage helper reading coach_language from the active bundle and injecting output-language instructions into CoachPromptBuilder, CoachSummaryPromptBuilder, and NotificationPromptBuilder (keeping JSON keys, enum values, and tool arguments in English).

Verification

  • xcodebuild test -project PulseLoop.xcodeproj -scheme PulseLoop -destination 'platform=iOS Simulator,name=iPhone 17' -only-testing:PulseLoopTests/LocalizationTests: 3/3 tests passed.
  • Independent code review performed and all findings addressed prior to PR.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant