From 8d6276e22f94d5b01e7626eee862a35409b6f570 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AD=8F=E5=B0=91=E9=98=B3?= <786612630@qq.com> Date: Wed, 24 Jul 2024 18:12:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=8F=98lan=E5=9B=BD=E5=AE=B6?= =?UTF-8?q?=E5=8C=96=E6=96=87=E4=BB=B6=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- {images/lan => lan}/lan_en.json | 0 {images/lan => lan}/lan_keys.json | 0 {images/lan => lan}/lan_zh.json | 0 lib/main.dart | 6 +++--- pubspec.yaml | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) rename {images/lan => lan}/lan_en.json (100%) rename {images/lan => lan}/lan_keys.json (100%) rename {images/lan => lan}/lan_zh.json (100%) diff --git a/images/lan/lan_en.json b/lan/lan_en.json similarity index 100% rename from images/lan/lan_en.json rename to lan/lan_en.json diff --git a/images/lan/lan_keys.json b/lan/lan_keys.json similarity index 100% rename from images/lan/lan_keys.json rename to lan/lan_keys.json diff --git a/images/lan/lan_zh.json b/lan/lan_zh.json similarity index 100% rename from images/lan/lan_zh.json rename to lan/lan_zh.json diff --git a/lib/main.dart b/lib/main.dart index ef02f5bc..f25dbcfd 100755 --- a/lib/main.dart +++ b/lib/main.dart @@ -60,9 +60,9 @@ FutureOr main() async { // 设置国际化信息 Future _initTranslation() async => TranslationLoader.loadTranslation( - zhSource: 'images/lan/lan_zh.json', - enSource: 'images/lan/lan_en.json', - keySource: 'images/lan/lan_keys.json', + zhSource: 'lan/lan_zh.json', + enSource: 'lan/lan_en.json', + keySource: 'lan/lan_keys.json', ); // 设置包名服务设备信息 diff --git a/pubspec.yaml b/pubspec.yaml index f7dfdfcc..3af6170d 100755 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -260,10 +260,10 @@ flutter: - images/ - images/tabbar/ - images/main/ - - images/lan/ - images/mine/ - images/lockType/ - assets/ + - lan/ # An image asset can refer to one or more resolution-specific "variants", see # https://flutter.dev/assets-and-images/#resolution-aware