-
Notifications
You must be signed in to change notification settings - Fork 280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add commands translations #2149
Conversation
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #2149 +/- ##
==========================================
- Coverage 83.62% 83.61% -0.01%
==========================================
Files 307 307
Lines 7085 7093 +8
Branches 1898 1901 +3
==========================================
+ Hits 5925 5931 +6
- Misses 998 1000 +2
Partials 162 162
☔ View full report in Codecov by Sentry. |
Size Change: +463 B (0%) Total Size: 1.9 MB
ℹ️ View Unchanged
|
🎉 This PR is included in version 10.16.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [11.0.0-rc.3](v11.0.0-rc.2...v11.0.0-rc.3) (2023-11-02) ### Bug Fixes * prevent flashing EmptyStateIndicator in ChannelList before the first channels page is loaded ([#2150](#2150)) ([a2a9645](a2a9645)) ### Features * add commands translations ([#2149](#2149)) ([f55c86f](f55c86f)) ### Chores * **deps:** bump @stream-io/stream-chat-css to v4-rc ([#2153](#2153)) ([030688f](030688f))
🎉 This PR is included in version 11.0.0-rc.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎯 Goal
Allow integrators to provide own translations for strings displayed in the commands suggestion list items.
I have exported the type for
Streami18n
constructor options and added a new optionparseMissingKeyHandler
to override thei18next
's default. I have removed the logging of missing translation key as the commands translations make use of default values that are provided by the back-end.