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