Skip to content

Commit e19e361

Browse files
authored
fix(llc): fixed locales (#2043)
1 parent aacaba6 commit e19e361

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

packages/stream_chat/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
✅ Added
44
- Added user blocking to the client.
55

6+
🐞 Fixed
7+
8+
- Fixed locale conversion in jiffy.
9+
610
## 8.1.0
711

812
✅ Added

packages/stream_chat_flutter/lib/src/stream_chat.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,8 @@ class StreamChatState extends State<StreamChat> {
164164

165165
@override
166166
void didChangeDependencies() {
167-
final currentLocale = Localizations.localeOf(context).toString();
167+
final currentLocale =
168+
Localizations.localeOf(context).toString().toLowerCase();
168169
final availableLocales = Jiffy.getSupportedLocales();
169170
if (availableLocales.contains(currentLocale)) {
170171
Jiffy.setLocale(currentLocale);

0 commit comments

Comments
 (0)