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

@ -87,11 +87,11 @@ class IndexUI extends HookConsumerWidget {
}
Map<IconData, String> get pageMenus => {
FluentIcons.home: "首页",
FluentIcons.game: "大厅",
FluentIcons.toolbox: "工具",
FluentIcons.settings: "设置",
FluentIcons.info: "关于",
FluentIcons.home: S.current.app_index_menu_home,
FluentIcons.game: S.current.app_index_menu_lobby,
FluentIcons.toolbox: S.current.app_index_menu_tools,
FluentIcons.settings: S.current.app_index_menu_settings,
FluentIcons.info: S.current.app_index_menu_about,
};
List<NavigationPaneItem> getNavigationPaneItems(
@ -181,4 +181,4 @@ class IndexUI extends HookConsumerWidget {
_goDownloader(BuildContext context) {
context.push('/index/downloader');
}
}
}