Skip to content
Open
Show file tree
Hide file tree
Changes from 2 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 @@ -9,6 +9,7 @@
<string>hi</string>
<string>en</string>
<string>gu</string>
<string>raj</string>
<string>kn</string>
<string>mr</string>
</array>
Expand Down
1 change: 1 addition & 0 deletions l10n.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ output-localization-file: app_localizations.dart
supported-locales:
- en
- hi
- raj
untranslated-messages-file: untranslated.txt
6 changes: 5 additions & 1 deletion lib/l10n/app_localizations.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import 'package:intl/intl.dart' as intl;
import 'app_localizations_en.dart';
import 'app_localizations_gu.dart';
import 'app_localizations_hi.dart';
import 'app_localizations_raj.dart';
import 'app_localizations_kn.dart';
import 'app_localizations_mr.dart';

Expand Down Expand Up @@ -100,6 +101,7 @@ abstract class AppLocalizations {
Locale('en'),
Locale('gu'),
Locale('hi'),
Locale('raj'),
Locale('kn'),
Locale('mr'),
];
Expand Down Expand Up @@ -2478,7 +2480,7 @@ class _AppLocalizationsDelegate

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

@override
bool shouldReload(_AppLocalizationsDelegate old) => false;
Expand All @@ -2493,6 +2495,8 @@ AppLocalizations lookupAppLocalizations(Locale locale) {
return AppLocalizationsGu();
case 'hi':
return AppLocalizationsHi();
case 'raj':
return AppLocalizationsRaj();
case 'kn':
return AppLocalizationsKn();
case 'mr':
Expand Down
Loading