Skip to content

Commit

Permalink
Fixed language issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
jigar-f committed Oct 6, 2023
1 parent b64b4d2 commit d33936b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@ class LanternApp extends StatelessWidget {
if (lang == '' || lang.startsWith('en')) {
return const Locale('en', 'US');
}
return Locale(lang);
final codes = lang.split('_');
return Locale(codes[0], codes[1]);

}

String _getLocaleBasedFont(Locale locale) {
Expand Down

0 comments on commit d33936b

Please sign in to comment.