File tree 6 files changed +58
-0
lines changed
6 files changed +58
-0
lines changed Original file line number Diff line number Diff line change
1
+ arb-dir : lib/l10n
2
+ template-arb-file : app_en.arb
3
+ output-class : ZulipLocalizations
4
+ output-localization-file : zulip_localizations.dart
Original file line number Diff line number Diff line change
1
+ {
2
+ "buttonSendDirectMessage": "Send direct message",
3
+ "@buttonSendDirectMessage": {
4
+ "description": "Label for button in profile screen to navigate to DMs with the shown user."
5
+ },
6
+ "userRoleOwner": "Owner",
7
+ "@userRoleOwner": {
8
+ "description": "Label for UserRole.owner"
9
+ },
10
+ "userRoleAdministrator": "Administrator",
11
+ "@userRoleAdministrator": {
12
+ "description": "Label for UserRole.administrator"
13
+ },
14
+ "userRoleModerator": "Moderator",
15
+ "@userRoleModerator": {
16
+ "description": "Label for UserRole.moderator"
17
+ },
18
+ "userRoleMember": "Member",
19
+ "@userRoleMember": {
20
+ "description": "Label for UserRole.member"
21
+ },
22
+ "userRoleGuest": "Guest",
23
+ "@userRoleGuest": {
24
+ "description": "Label for UserRole.guest"
25
+ },
26
+ "userRoleUnknown": "Unknown",
27
+ "@userRoleUnknown": {
28
+ "description": "Label for UserRole.unknown"
29
+ }
30
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "buttonSendDirectMessage": "ダイレクトメッセージを送信",
3
+ "userRoleOwner": "オーナー",
4
+ "userRoleAdministrator": "管理者",
5
+ "userRoleModerator": "モデレータ",
6
+ "userRoleMember": "メンバー",
7
+ "userRoleGuest": "ゲスト",
8
+ "userRoleUnknown": "不明"
9
+ }
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