diff --git a/assets/translations/en-US.json b/assets/translations/en.json similarity index 100% rename from assets/translations/en-US.json rename to assets/translations/en.json diff --git a/assets/translations/zh-CN.json b/assets/translations/zh.json similarity index 100% rename from assets/translations/zh-CN.json rename to assets/translations/zh.json diff --git a/lib/main.dart b/lib/main.dart index 640c460..a1193ac 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -35,6 +35,7 @@ class SolianApp extends StatelessWidget { supportedLocales: [Locale('en', 'US'), Locale('zh', 'CN')], fallbackLocale: Locale('en', 'US'), useFallbackTranslations: true, + useOnlyLangCode: true, assetLoader: JsonAssetLoader(), child: MultiProvider( providers: [