support internationalization

hmxc
张萌 3 years ago
parent 337364ceb0
commit 103b1dffe2

@ -0,0 +1,4 @@
arb-dir: lib/l10n
template-arb-file: app_zh.arb
output-localization-file: app_localizations.dart
output-class: S

@ -0,0 +1,10 @@
{
"appName": "智慧社区",
"@appName":{
"description": "应用名称"
},
"tempPlotName": "人才公寓智慧小区",
"@tempPlotName":{
"description": "临时使用的小区名称"
}
}

@ -561,7 +561,7 @@ packages:
source: hosted
version: "4.5.1"
intl:
dependency: transitive
dependency: "direct main"
description:
name: intl
url: "https://pub.flutter-io.cn"

@ -13,6 +13,7 @@ dependencies:
sdk: flutter
flutter_localizations:
sdk: flutter
intl: ^0.17.0
cupertino_icons: ^1.0.2
#屏幕适配
flutter_screenutil: ^5.0.0-nullsafety.11
@ -99,7 +100,7 @@ flutter:
- assets/static_temp/
- assets/static_fix/
generate: true
fonts:
- family: Bebas
fonts:

Loading…
Cancel
Save