feat: 多语言 初步引入

This commit is contained in:
2024-03-15 00:01:06 +08:00
parent eae02be2af
commit b2c13a8a6f
45 changed files with 525 additions and 446 deletions

View File

@@ -22,7 +22,7 @@ class SplashUI extends HookConsumerWidget {
final appModel = ref.read(appGlobalModelProvider.notifier);
_initApp(context, appModel, stepState, ref);
return null;
}, const []);
}, []);
return makeDefaultPage(context,
content: Center(
@@ -33,9 +33,9 @@ class SplashUI extends HookConsumerWidget {
const SizedBox(height: 32),
const ProgressRing(),
const SizedBox(height: 32),
if (step == 0) const Text("正在检测可用性,这可能需要一点时间..."),
if (step == 1) const Text("正在检查更新..."),
if (step == 2) const Text("即将完成..."),
if (step == 0) Text(S.current.app_splash_checking_availability),
if (step == 1) Text(S.current.app_splash_checking_for_updates),
if (step == 2) Text(S.current.app_splash_almost_done),
],
),
),
@@ -75,4 +75,4 @@ class SplashUI extends HookConsumerWidget {
if (!context.mounted) return;
context.go("/index");
}
}
}