Skip to content

Commit

Permalink
fix(llc): fixed locales (#2043)
Browse files Browse the repository at this point in the history
  • Loading branch information
deven98 authored Nov 1, 2024
1 parent aacaba6 commit e19e361
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/stream_chat/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
✅ Added
- Added user blocking to the client.

🐞 Fixed

- Fixed locale conversion in jiffy.

## 8.1.0

✅ Added
Expand Down
3 changes: 2 additions & 1 deletion packages/stream_chat_flutter/lib/src/stream_chat.dart
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ class StreamChatState extends State<StreamChat> {

@override
void didChangeDependencies() {
final currentLocale = Localizations.localeOf(context).toString();
final currentLocale =
Localizations.localeOf(context).toString().toLowerCase();
final availableLocales = Jiffy.getSupportedLocales();
if (availableLocales.contains(currentLocale)) {
Jiffy.setLocale(currentLocale);
Expand Down

0 comments on commit e19e361

Please sign in to comment.