l10: update common & Lang settings

This commit is contained in:
2024-03-17 16:54:09 +08:00
parent 9d97dfc786
commit 17588dfab8
31 changed files with 1203 additions and 500 deletions

View File

@ -1,6 +1,7 @@
import 'dart:async';
import 'package:fluent_ui/fluent_ui.dart';
import 'package:starcitizen_doctor/generated/l10n.dart';
class CountdownTimeText extends StatefulWidget {
final DateTime targetTime;
@ -61,7 +62,7 @@ class _CountdownTimeTextState extends State<CountdownTimeText> {
mainAxisSize: MainAxisSize.min,
children: [
Text(
"$day天 ",
S.current.home_holiday_countdown_days(day),
style: TextStyle(
fontSize: 24, color: day < 30 ? Colors.red : Colors.white),
),
@ -78,9 +79,9 @@ class _CountdownTimeTextState extends State<CountdownTimeText> {
@override
Widget build(BuildContext context) {
if (stopTimer) {
return const Text(
"正在进行中",
style: TextStyle(
return Text(
S.current.home_holiday_countdown_in_progress,
style: const TextStyle(
fontSize: 18,
color: Color.fromRGBO(32, 220, 89, 1.0),
fontWeight: FontWeight.bold),

View File

@ -4,6 +4,7 @@ import 'package:fluent_ui/fluent_ui.dart';
import 'package:flutter_hooks/flutter_hooks.dart';
import 'package:go_router/go_router.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:starcitizen_doctor/generated/l10n.dart';
import 'package:url_launcher/url_launcher_string.dart';
import 'package:window_manager/window_manager.dart';
@ -107,16 +108,14 @@ List<Widget> makeMarkdownView(String description, {String? attachmentsUrl}) {
loadStateChanged: (ExtendedImageState state) {
switch (state.extendedImageLoadState) {
case LoadState.loading:
return const Center(
return Center(
child: Padding(
padding: EdgeInsets.all(8.0),
padding: const EdgeInsets.all(8.0),
child: Column(
children: [
ProgressRing(),
SizedBox(
height: 12,
),
Text("加载图片...")
const ProgressRing(),
const SizedBox(height: 12),
Text(S.current.app_common_loading_images)
],
),
),