feat(localization): add Azerbaijani and Russian translations#2727
feat(localization): add Azerbaijani and Russian translations#2727iamvaliyev wants to merge 2 commits into
Conversation
📝 WalkthroughWalkthroughThe PR adds Azerbaijani (az) and Russian (ru) locales: docs updated, the localization registry wired, and two full translation implementations added (~1,400 lines). ChangesLocalization Language Support
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
a22aa86 to
aa9c804
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2727 +/- ##
==========================================
+ Coverage 65.96% 66.52% +0.56%
==========================================
Files 425 427 +2
Lines 26926 27381 +455
==========================================
+ Hits 17761 18216 +455
Misses 9165 9165 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Add Azerbaijani localization for the Stream Chat widgets, implementing StreamChatLocalizationsAz against the v10 localization interface and registering the `az` locale. Update the README and changelog accordingly. Co-authored-by: Cursor <cursoragent@cursor.com>
Add Russian localization for the Stream Chat widgets, implementing StreamChatLocalizationsRu against the v10 localization interface with proper Russian plural forms (one/few/many) for count-based strings, and registering the `ru` locale. Update the README and changelog accordingly. Co-authored-by: Cursor <cursoragent@cursor.com>
aa9c804 to
9a77662
Compare
Summary
Adds two new locales to
stream_chat_localizations:az) — full translation bundle (StreamChatLocalizationsAz).ru) — full translation bundle (StreamChatLocalizationsRu), with proper Russian pluralization (one/few/many) for all count-based strings (e.g.1 голос/2 голоса/5 голосов, members, replies, results, votes, threads, unread count).Both locales are registered in
GlobalStreamChatLocalizations(partdirective,kStreamChatSupportedLanguages, andgetStreamChatTranslation). The packageREADME.md(supported languages,supportedLocalesusage example, and iOSInfo.plistexample) andCHANGELOG.mdare updated accordingly.Each language is added in its own self-contained commit.
Test plan
dart analyze --fatal-infos lib— no issuesdart format --set-exit-if-changed .— no changesflutter test— all tests pass, including the auto-generatedtranslations exist for azandtranslations exist for rucases intranslations_test.dartStreamChatLocalizationsmembers implemented for both locales (parity withen)I have signed the Stream CLA.
Summary by CodeRabbit