Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ios/Runner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<string>gu</string>
<string>kn</string>
<string>mr</string>
<string>or</string>
Comment thread
coderabbitai[bot] marked this conversation as resolved.
</array>
<key>CFBundleDisplayName</key>
<string>Resonate</string>
Expand Down
14 changes: 12 additions & 2 deletions lib/l10n/app_localizations.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import 'app_localizations_gu.dart';
import 'app_localizations_hi.dart';
import 'app_localizations_kn.dart';
import 'app_localizations_mr.dart';
import 'app_localizations_or.dart';

// ignore_for_file: type=lint

Expand Down Expand Up @@ -102,6 +103,7 @@ abstract class AppLocalizations {
Locale('hi'),
Locale('kn'),
Locale('mr'),
Locale('or'),
];

/// The title of the application.
Expand Down Expand Up @@ -2477,8 +2479,14 @@ class _AppLocalizationsDelegate
}

@override
bool isSupported(Locale locale) =>
<String>['en', 'gu', 'hi', 'kn', 'mr'].contains(locale.languageCode);
bool isSupported(Locale locale) => <String>[
'en',
'gu',
'hi',
'kn',
'mr',
'or',
].contains(locale.languageCode);

@override
bool shouldReload(_AppLocalizationsDelegate old) => false;
Expand All @@ -2497,6 +2505,8 @@ AppLocalizations lookupAppLocalizations(Locale locale) {
return AppLocalizationsKn();
case 'mr':
return AppLocalizationsMr();
case 'or':
return AppLocalizationsOr();
}

throw FlutterError(
Expand Down
Loading