Skip to content

Commit d8272c8

Browse files
committed
fix(app): use language code for locale
- Update locale setting to use language.code instead of just language - This ensures proper locale initialization when the app is restarted
1 parent 096c572 commit d8272c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/app/view/app.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ class _AppViewState extends State<_AppView> {
233233
AppBaseTheme.dark => ThemeMode.dark,
234234
_ => ThemeMode.system,
235235
},
236-
locale: language != null ? Locale(language) : null,
236+
locale: language != null ? Locale(language.code) : null,
237237
),
238238
),
239239
),

0 commit comments

Comments
 (0)