🐛 Use only lang code on localization to fix not found bug

This commit is contained in:
LittleSheep 2024-11-14 00:40:58 +08:00
parent 654a71e852
commit 9498d428cd
3 changed files with 1 additions and 0 deletions

View File

@ -35,6 +35,7 @@ class SolianApp extends StatelessWidget {
supportedLocales: [Locale('en', 'US'), Locale('zh', 'CN')], supportedLocales: [Locale('en', 'US'), Locale('zh', 'CN')],
fallbackLocale: Locale('en', 'US'), fallbackLocale: Locale('en', 'US'),
useFallbackTranslations: true, useFallbackTranslations: true,
useOnlyLangCode: true,
assetLoader: JsonAssetLoader(), assetLoader: JsonAssetLoader(),
child: MultiProvider( child: MultiProvider(
providers: [ providers: [