locale fix (#1195)

This commit is contained in:
Syeerzy 2022-10-01 17:50:19 +08:00 committed by GitHub
parent f355ff01e4
commit c11a00a380
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 28 additions and 11 deletions

View File

@ -199,7 +199,8 @@
"delete": "Delete", "delete": "Delete",
"textPlaceholder": "Empty", "textPlaceholder": "Empty",
"copyProperty": "Copied property to clipboard", "copyProperty": "Copied property to clipboard",
"count": "Count" "count": "Count",
"newRow": "New row"
}, },
"selectOption": { "selectOption": {
"create": "Create", "create": "Create",
@ -231,4 +232,4 @@
"create_new_card": "New" "create_new_card": "New"
} }
} }
} }

View File

@ -94,7 +94,14 @@
}, },
"tooltip": { "tooltip": {
"lightMode": "切换到亮色模式", "lightMode": "切换到亮色模式",
"darkMode": "切换到暗色模式" "darkMode": "切换到暗色模式",
"openAsPage": "作为页面打开",
"addNewRow": "增加一行",
"openMenu": "点击打开菜单"
},
"sideBar": {
"openSidebar": "打开侧边栏",
"closeSidebar": "关闭侧边栏"
}, },
"notifications": { "notifications": {
"export": { "export": {
@ -149,15 +156,12 @@
"darkLabel": "夜间模式" "darkLabel": "夜间模式"
} }
}, },
"sideBar": {
"openSidebar": "打开侧边栏",
"closeSidebar": "关闭侧边栏"
},
"grid": { "grid": {
"settings": { "settings": {
"filter": "过滤器", "filter": "过滤器",
"sortBy": "排序", "sortBy": "排序",
"Properties": "属性" "Properties": "属性",
"group": "组"
}, },
"field": { "field": {
"hide": "隐藏", "hide": "隐藏",
@ -186,13 +190,17 @@
"addSelectOption": "添加一个标签", "addSelectOption": "添加一个标签",
"optionTitle": "标签", "optionTitle": "标签",
"addOption": "添加标签", "addOption": "添加标签",
"editProperty": "编辑列属性" "editProperty": "编辑列属性",
"newColumn": "增加一列",
"deleteFieldPromptMessage": "确定要删除这个属性吗? "
}, },
"row": { "row": {
"duplicate": "复制", "duplicate": "复制",
"delete": "删除", "delete": "删除",
"textPlaceholder": "空", "textPlaceholder": "空",
"copyProperty": "复制列" "copyProperty": "复制列",
"count": "数量",
"newRow": "添加一行"
}, },
"selectOption": { "selectOption": {
"create": "新建", "create": "新建",
@ -218,5 +226,11 @@
"timeHintTextInTwelveHour": "01:00 PM", "timeHintTextInTwelveHour": "01:00 PM",
"timeHintTextInTwentyFourHour": "13:00" "timeHintTextInTwentyFourHour": "13:00"
} }
},
"board": {
"column": {
"create_new_card": "新建"
},
"menuName": "看板"
} }
} }

View File

@ -1,4 +1,6 @@
import 'package:app_flowy/generated/locale_keys.g.dart';
import 'package:app_flowy/plugins/grid/application/grid_bloc.dart'; import 'package:app_flowy/plugins/grid/application/grid_bloc.dart';
import 'package:easy_localization/easy_localization.dart';
import 'package:flowy_infra/image.dart'; import 'package:flowy_infra/image.dart';
import 'package:flowy_infra/theme.dart'; import 'package:flowy_infra/theme.dart';
import 'package:flowy_infra_ui/style_widget/button.dart'; import 'package:flowy_infra_ui/style_widget/button.dart';
@ -13,7 +15,7 @@ class GridAddRowButton extends StatelessWidget {
Widget build(BuildContext context) { Widget build(BuildContext context) {
final theme = context.watch<AppTheme>(); final theme = context.watch<AppTheme>();
return FlowyButton( return FlowyButton(
text: const FlowyText.medium('New row', fontSize: 12), text: FlowyText.medium(LocaleKeys.grid_row_newRow.tr(), fontSize: 12),
hoverColor: theme.shader6, hoverColor: theme.shader6,
onTap: () => context.read<GridBloc>().add(const GridEvent.createRow()), onTap: () => context.read<GridBloc>().add(const GridEvent.createRow()),
leftIcon: svgWidget("home/add", color: theme.iconColor), leftIcon: svgWidget("home/add", color: theme.iconColor),