You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### 🎯 Goal
We had several requests related to customization of `aria-label`
attributes. The best approach is to rely on existing
internationalization support for customization and overrides.
Fixes#1931, fixes#1994.
### 🛠 Implementation details
1. Wrapped all ARIA labels in `t(...)` translation function. The keys
used for ARIA labels are prefixed with `aria/...` to distinguish them
from other texts.
2. Added default translations for supported languages.
### 🎨 UI Changes
No visible changes.
### To-Do
- [x] Update docs
If you are using `moment` as your datetime parser engine and want to start using timezone-located datetime strings, then we recommend to use `moment-timezone` instead of `moment` package. Moment Timezone will automatically load and extend the moment module, then return the modified instance. This will also prevent multiple versions of `moment` being installed in a project.
@@ -305,7 +337,7 @@ import { Streami18n } from 'stream-chat-react';
305
337
consti18n=newStreami18n({
306
338
DateTimeParser: momentTimezone,
307
339
timezone: 'Europe/Prague',
308
-
})
340
+
});
309
341
```
310
342
311
343
### Translating Messages
@@ -331,7 +363,7 @@ The `Streami18n` class wraps [`i18next`](https://www.npmjs.com/package/i18next)
0 commit comments