File tree 6 files changed +27
-0
lines changed
6 files changed +27
-0
lines changed Original file line number Diff line number Diff line change
1
+ {}
Original file line number Diff line number Diff line change
1
+ {}
Original file line number Diff line number Diff line change
1
+ # Docs on this config file:
2
+ # https://docs.flutter.dev/ui/accessibility-and-localization/internationalization#configuring-the-l10nyaml-file
3
+
4
+ arb-dir : assets/l10n
5
+ template-arb-file : app_en.arb
6
+ required-resource-attributes : true
7
+ output-localization-file : zulip_localizations.dart
8
+ output-class : ZulipLocalizations
9
+ preferred-supported-locales : [ en ]
10
+ nullable-getter : false
Original file line number Diff line number Diff line change 1
1
import 'package:flutter/material.dart' ;
2
+ import 'package:flutter_gen/gen_l10n/zulip_localizations.dart' ;
2
3
3
4
import '../model/narrow.dart' ;
4
5
import 'about_zulip.dart' ;
@@ -45,6 +46,8 @@ class ZulipApp extends StatelessWidget {
45
46
return GlobalStoreWidget (
46
47
child: MaterialApp (
47
48
title: 'Zulip' ,
49
+ localizationsDelegates: ZulipLocalizations .localizationsDelegates,
50
+ supportedLocales: ZulipLocalizations .supportedLocales,
48
51
theme: theme,
49
52
home: const ChooseAccountPage ()));
50
53
}
Original file line number Diff line number Diff line change @@ -358,6 +358,11 @@ packages:
358
358
url: "https://pub.dev"
359
359
source: hosted
360
360
version: "2.0.2"
361
+ flutter_localizations:
362
+ dependency: "direct main"
363
+ description: flutter
364
+ source: sdk
365
+ version: "0.0.0"
361
366
flutter_plugin_android_lifecycle:
362
367
dependency: transitive
363
368
description:
Original file line number Diff line number Diff line change @@ -57,6 +57,8 @@ dependencies:
57
57
package_info_plus : ^4.0.1
58
58
collection : ^1.17.2
59
59
url_launcher : ^6.1.11
60
+ flutter_localizations :
61
+ sdk : flutter
60
62
61
63
dev_dependencies :
62
64
flutter_test :
@@ -82,6 +84,11 @@ dev_dependencies:
82
84
# The following section is specific to Flutter packages.
83
85
flutter :
84
86
87
+ # Generate localization bindings from ARB files in lib/l10n/.
88
+ # This happens automatically with `flutter run`
89
+ # but can be manually run with `flutter gen-l10n`
90
+ generate : true
91
+
85
92
# The following line ensures that the Material Icons font is
86
93
# included with your application, so that you can use the icons in
87
94
# the material Icons class.
You can’t perform that action at this time.
0 commit comments