Skip to content

Commit

Permalink
feat: Add a little translation
Browse files Browse the repository at this point in the history
  • Loading branch information
runhey committed Dec 28, 2023
1 parent 624ce08 commit 666eea2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions lib/comom/i18n.dart
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ class Messages extends Translations {
I18n.install_oas_failure: '安装OAS失败',
I18n.install_oas_from_github: '从GitHub安装OAS',
I18n.install_oas_help: '这将会从Github上下载并解压,请保持网络稳定,同时将会清空该目录',
I18n.setup_deploy: '服务启动配置',
I18n.setup_log: '服务启动日志',
};

Map<String, String> get _cn_menu => {
Expand Down Expand Up @@ -136,6 +138,7 @@ class Messages extends Translations {
I18n.mystery_shop: '神秘商店',
I18n.duel: '斗鸡',
I18n.activity_shikigami: '当期爬塔',
I18n.meta_demon: '超鬼王',
};
Map<String, String> get _us_menu => {
I18n.log_out: 'Logout',
Expand Down
3 changes: 3 additions & 0 deletions lib/comom/i18n_content.dart
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ class I18n {
static const String install_oas_failure = 'Install OAS failure';
static const String install_oas_from_github = 'Install OAS from GitHub';
static const String install_oas_help = 'Install OAS from local';
static const String setup_deploy = 'Setup deploy';
static const String setup_log = 'Setup log';

// 菜单项相关
static const String overview = 'Overview';
Expand Down Expand Up @@ -116,6 +118,7 @@ class I18n {
static const String mystery_shop = 'MysteryShop';
static const String duel = 'Duel';
static const String activity_shikigami = 'ActivityShikigami';
static const String meta_demon = 'MetaDemon';
// script 脚本配置
static const String device = 'device';
static const String error = 'error';
Expand Down
2 changes: 1 addition & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ void main() async {
await windowManager.ensureInitialized();

WindowOptions windowOptions = const WindowOptions(
size: Size(1100, 800),
size: Size(1200, 800),
center: true,
backgroundColor: Colors.transparent,
skipTaskbar: false,
Expand Down
4 changes: 2 additions & 2 deletions lib/views/server/server_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ class ServerView extends StatelessWidget {
collapsedBackgroundColor:
Get.theme.colorScheme.secondaryContainer.withOpacity(0.24),
borderRadius: const BorderRadius.all(Radius.circular(10)),
title: Text('Deploy', style: Get.textTheme.titleMedium),
title: Text(I18n.setup_deploy.tr, style: Get.textTheme.titleMedium),
children: [
SingleChildScrollView(
child: code(maxHeight - 50),
Expand All @@ -166,7 +166,7 @@ class ServerView extends StatelessWidget {
collapsedBackgroundColor:
Get.theme.colorScheme.secondaryContainer.withOpacity(0.24),
borderRadius: const BorderRadius.all(Radius.circular(10)),
title: Text('Log', style: Get.textTheme.titleMedium),
title: Text(I18n.setup_log.tr, style: Get.textTheme.titleMedium),
children: [
SingleChildScrollView(
child: GetX<ServerController>(builder: (controller) {
Expand Down

0 comments on commit 666eea2

Please sign in to comment.