chore(i18n): migrate start stop keys to fl_lib (#1057)

This commit is contained in:
lollipopkit🏳️‍⚧️
2026-02-27 23:36:59 +08:00
committed by GitHub
parent 2166e27771
commit c3678f3df9
75 changed files with 137 additions and 4220 deletions

View File

@@ -58,7 +58,7 @@ extension on _ContainerPageState {
}) async {
await context.showRoundDialog(
title: title,
child: Text(message ?? libL10n.askContinue('${l10n.prune} $title')),
child: Text(message ?? libL10n.askContinue('${libL10n.prune} $title')),
actions: Btn.ok(
onTap: () async {
context.pop();
@@ -91,7 +91,7 @@ extension on _ContainerPageState {
context.showRoundDialog(title: libL10n.error, child: Text(e.toString()));
}
},
child: Text(l10n.run),
child: Text(libL10n.run),
),
],
);
@@ -160,7 +160,7 @@ extension on _ContainerPageState {
return Checkbox(value: force, onChanged: (val) => setState(() => force = val ?? false));
},
),
Text(l10n.force),
Text(libL10n.force),
],
),
],

View File

@@ -67,7 +67,7 @@ class _ContainerPageState extends ConsumerState<ContainerPage> {
CustomAppBar _buildAppBar() {
return CustomAppBar(
centerTitle: true,
title: TwoLineText(up: l10n.container, down: widget.args.spi.name),
title: TwoLineText(up: libL10n.container, down: widget.args.spi.name),
actions: [
IconButton(
onPressed: () => context.showLoadingDialog(fn: () => _containerNotifier.refresh()),
@@ -195,7 +195,7 @@ class _ContainerPageState extends ConsumerState<ContainerPage> {
: l10n.dockerStatusRunningFmt(running);
return ExpandTile(
leading: const Icon(OctIcons.container, size: 22),
title: Text(l10n.container),
title: Text(libL10n.container),
subtitle: Text(subtitle, style: UIs.textGrey),
initiallyExpanded: items.length < 7,
children: items.map(_buildPsItem).toList(),
@@ -307,7 +307,7 @@ class _ContainerPageState extends ConsumerState<ContainerPage> {
if (len == 0) return UIs.placeholder;
return ExpandTile(
leading: const Icon(Icons.delete),
title: Text(l10n.prune),
title: Text(libL10n.prune),
children: _PruneTypes.values.map(_buildPruneBtn).toList(),
).cardx;
}