feat(i18n): soft multi-locale catalogs + SL_LOCALE (C01 L16) - #284
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (6)
📜 Recent review details🧰 Additional context used📓 Path-based instructions (3)**/*📄 CodeRabbit inference engine (AGENTS.md)
Files:
**/*.rs📄 CodeRabbit inference engine (AGENTS.md)
Files:
**/*.{rs,toml}📄 CodeRabbit inference engine (AGENTS.md)
Files:
🔇 Additional comments (8)
📝 WalkthroughSummaryAdds soft Spanish locale support with embedded catalog loading, Must Fix
Should Fix
Consider
Approve / Request ChangesRequest changes pending successful Rust formatting, clippy, and workspace test verification. WalkthroughThe Phase-0 i18n scaffold now embeds English and Spanish catalogs, supports locale selection through explicit helpers or ChangesSoft multi-locale i18n
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant Caller
participant t_locale
participant active_locale
participant Catalog
Caller->>t_locale: request key with optional locale
t_locale->>active_locale: resolve explicit locale or SL_LOCALE
active_locale-->>t_locale: return normalized locale
t_locale->>Catalog: look up localized message
Catalog-->>t_locale: return Spanish or English fallback
t_locale-->>Caller: return translated string
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
✨ Simplify code
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Add es catalog and locale selection; Fluent/ICU still deferred. Co-authored-by: Cursor <cursoragent@cursor.com>
a442a8a to
0e736fd
Compare
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Conservative +7 from blocking sandbox-boundary (C04 L40), ADR 0005 edge N/A (C11 L114), versioning policy (C11 L119), ErrorState non-color cues (C09 L81.15), and soft es i18n (C01 L16). Held Wave-35 soft stubs. Co-authored-by: Cursor <cursoragent@cursor.com>
Conservative +7 from blocking sandbox-boundary (C04 L40), ADR 0005 edge N/A (C11 L114), versioning policy (C11 L119), ErrorState non-color cues (C09 L81.15), and soft es i18n (C01 L16). Held Wave-35 soft stubs. Co-authored-by: Cursor <cursoragent@cursor.com>
Summary
locales/es.json+SL_LOCALE/t_locale(C01 L16).Test plan
pwsh ./scripts/i18n-check.ps1 -SelfCheckcargo test -p session-ledger --test i18n --lib i18n