feat(theme): expose available languages in logged_user endpoint#1121
Conversation
WalkthroughThe Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@sonar/theme/views.py`:
- Around line 127-128: The fallback language label in the availableLanguages
list is hardcoded as English and should be translatable like the configured
I18N_LANGUAGES entries. Update the availableLanguages construction in
sonar/theme/views.py to wrap the English label with _(), and add the needed
translation import near the top of the module so the symbol is available.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 7fc37d7a-a8e9-434f-ad52-213958caf02d
📒 Files selected for processing (2)
sonar/theme/views.pytests/ui/test_views.py
Co-Authored-by: Bertrand Zuchuat <bertrand.zuchuat@rero.ch>
98d7dcc to
01bcf7e
Compare
No description provided.