Skip to content

Commit

Permalink
fix: lang switch (#553)
Browse files Browse the repository at this point in the history
  • Loading branch information
lollipopkit authored Aug 27, 2024
1 parent 931c5f0 commit 329fd33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
1 change: 1 addition & 0 deletions lib/app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ class MyApp extends StatelessWidget {
final locale = Stores.setting.locale.fetch().toLocale;

return MaterialApp(
key: ValueKey(locale),
locale: locale,
localizationsDelegates: const [
LibLocalizations.delegate,
Expand Down
7 changes: 1 addition & 6 deletions lib/intro.dart
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,9 @@ final class _IntroPage extends StatelessWidget {
).cardx,
ListTile(
leading: const Icon(MingCute.chart_line_line, size: _kIconSize),
title: TipText(l10n.stat, l10n.parseContainerStatsTip),
title: TipText('Docker ${l10n.stat}', l10n.parseContainerStatsTip),
trailing: StoreSwitch(prop: _setting.containerParseStat),
).cardx,
ListTile(
leading: const Icon(OctIcons.cpu),
title: TipText(l10n.noLineChartForCpu, l10n.cpuViewAsProgressTip),
trailing: StoreSwitch(prop: _setting.cpuViewAsProgress),
).cardx,
ListTile(
leading: const Icon(Bootstrap.alphabet),
title: TipText(l10n.letterCache, l10n.letterCacheTip),
Expand Down

0 comments on commit 329fd33

Please sign in to comment.