Skip to content

Commit

Permalink
feat(condiational-formatting): update enUS locale (#1787)
Browse files Browse the repository at this point in the history
  • Loading branch information
jikkai committed Apr 3, 2024
1 parent 73aae0b commit 785e141
Show file tree
Hide file tree
Showing 2 changed files with 127 additions and 123 deletions.
6 changes: 6 additions & 0 deletions examples/src/sheets/locales.ts
Expand Up @@ -19,13 +19,19 @@ import { enUS as UniverDesignEnUS } from '@univerjs/design';
import { enUS as UniverDocsUIEnUS } from '@univerjs/docs-ui';
import { enUS as UniverSheetsEnUS } from '@univerjs/sheets';
import { enUS as UniverSheetsUIEnUS } from '@univerjs/sheets-ui';
import { enUS as UniverSheetsFormulaEnUS } from '@univerjs/sheets-formula';
import { enUS as UniverSheetsDataValidationEnUS } from '@univerjs/sheets-data-validation';
import { enUS as UniverSheetsConditionalFormattingUIEnUS } from '@univerjs/sheets-conditional-formatting-ui';
import { enUS as UniverUiEnUS } from '@univerjs/ui';

export const locales = {
[LocaleType.EN_US]: {
...UniverSheetsEnUS,
...UniverDocsUIEnUS,
...UniverSheetsUIEnUS,
...UniverSheetsFormulaEnUS,
...UniverSheetsDataValidationEnUS,
...UniverSheetsConditionalFormattingUIEnUS,
...UniverUiEnUS,
...UniverDesignEnUS,
},
Expand Down
244 changes: 121 additions & 123 deletions packages/sheets-conditional-formatting-ui/src/locale/en-US.ts
Expand Up @@ -16,38 +16,37 @@

import type zhCN from './zh-CN';

// TODO: @Gggpound To be translated
const locale: typeof zhCN = {
sheet: {
cf: {
title: '条件格式',
title: 'Conditional Formatting',
menu: {
manageConditionalFormatting: '管理条件格式',
createConditionalFormatting: '新建条件格式',
clearRangeRules: '清除所选区域的规则',
clearWorkSheetRules: '清除整个工作表的规则',
manageConditionalFormatting: 'Manage Conditional Formatting',
createConditionalFormatting: 'Create Conditional Formatting',
clearRangeRules: 'Clear Rules for Selected Range',
clearWorkSheetRules: 'Clear Rules for Entire Sheet',

},
form: {
lessThan: '该值必须小于 {0}',
lessThanOrEqual: '该值必须小于等于 {0}',
greaterThan: '该值必大于 {0}',
greaterThanOrEqual: '该值必大于等于 {0}',
rangeSelector: '选择范围或者输入值',
lessThan: 'The value must be less than {0}',
lessThanOrEqual: 'The value must be less than or equal to {0}',
greaterThan: 'The value must be greater than {0}',
greaterThanOrEqual: 'The value must be greater than or equal to {0}',
rangeSelector: 'Select Range or Enter Value',
},
iconSet: {
direction: '方向',
shape: '形状',
mark: '标记',
rank: '等级',
rule: '规则',
icon: '图标',
type: '类型',
value: '',
reverseIconOrder: '反转图标次序',
and: '',
when: '当值',
onlyShowIcon: '仅显示图标',
direction: 'Direction',
shape: 'Shape',
mark: 'Mark',
rank: 'Rank',
rule: 'Rule',
icon: 'Icon',
type: 'Type',
value: 'Value',
reverseIconOrder: 'Reverse Icon Order',
and: 'And',
when: 'When',
onlyShowIcon: 'Only Show Icon',
},
symbol: {
greaterThan: '>',
Expand All @@ -56,118 +55,117 @@ const locale: typeof zhCN = {
lessThanOrEqual: '<=',
},
panel: {
createRule: '新增规则',
clear: '清空所有规则',
range: '应用范围',
styleType: '样式类型',
submit: '确认',
cancel: '取消',
rankAndAverage: '最前/最后/平均值',
styleRule: '样式规则',
isNotBottom: '最前',
isBottom: '最后',
greaterThanAverage: '大于平均值',
lessThanAverage: '小于平均值',
medianValue: '中间值',
fillType: '填充方式',
pureColor: '纯色',
gradient: '渐变',
colorSet: '颜色设置',
positive: '正值',
native: '负值',
workSheet: '整张工作表',
selectedRange: '所选单元格',
managerRuleSelect: '管理 {0} 的规则',
createRule: 'Create Rule',
clear: 'Clear All Rules',
range: 'Apply Range',
styleType: 'Style Type',
submit: 'Submit',
cancel: 'Cancel',
rankAndAverage: 'Top/Bottom/Average',
styleRule: 'Style Rule',
isNotBottom: 'Top',
isBottom: 'Bottom',
greaterThanAverage: 'Greater Than Average',
lessThanAverage: 'Less Than Average',
medianValue: 'Median Value',
fillType: 'Fill Type',
pureColor: 'Solid Color',
gradient: 'Gradient',
colorSet: 'Color Set',
positive: 'Positive',
native: 'Negative',
workSheet: 'Entire Sheet',
selectedRange: 'Selected Range',
managerRuleSelect: 'Manage {0} Rules',
},
preview: {
describe: {
beginsWith: '开头为{0}',
endsWith: '结尾为{0}',
containsText: '文本包含{0}',
notContainsText: '文本不包含{0}',
equal: '等于{0}',
notEqual: '不等于{0}',
containsBlanks: '为空',
notContainsBlanks: '不为空',
containsErrors: '错误',
notContainsErrors: '非错误',
greaterThan: '大于{0}',
greaterThanOrEqual: '大于等于{0}',
lessThan: '小于{0}',
lessThanOrEqual: '小于等于{0}',
notBetween: '不介于{0}{1}之间',
between: '介于{0}{1}之间',
yesterday: '昨日',
tomorrow: '明日',
last7Days: '最近7天',
thisMonth: '本月',
lastMonth: '上个月',
nextMonth: '下个月',
thisWeek: '本周',
lastWeek: '上周',
nextWeek: '下周',
today: '今日',
topN: '{0}',
bottomN: '{0}',
topNPercent: '{0}%',
bottomNPercent: '{0}%',
beginsWith: 'Begins with {0}',
endsWith: 'Ends with {0}',
containsText: 'Text contains {0}',
notContainsText: 'Text does not contain {0}',
equal: 'Equal to {0}',
notEqual: 'Not equal to {0}',
containsBlanks: 'Contains Blanks',
notContainsBlanks: 'Does not contain Blanks',
containsErrors: 'Contains Errors',
notContainsErrors: 'Does not contain Errors',
greaterThan: 'Greater than {0}',
greaterThanOrEqual: 'Greater than or equal to {0}',
lessThan: 'Less than {0}',
lessThanOrEqual: 'Less than or equal to {0}',
notBetween: 'Not between {0} and {1}',
between: 'Between {0} and {1}',
yesterday: 'Yesterday',
tomorrow: 'Tomorrow',
last7Days: 'Last 7 Days',
thisMonth: 'This Month',
lastMonth: 'Last Month',
nextMonth: 'Next Month',
thisWeek: 'This Week',
lastWeek: 'Last Week',
nextWeek: 'Next Week',
today: 'Today',
topN: 'Top {0}',
bottomN: 'Bottom {0}',
topNPercent: 'Top {0}%',
bottomNPercent: 'Bottom {0}%',
},
},
operator: {
beginsWith: '开头为',
endsWith: '结尾为',
containsText: '文本包含',
notContainsText: '文本不包含',
equal: '等于',
notEqual: '不等于',
containsBlanks: '为空',
notContainsBlanks: '不为空',
containsErrors: '错误',
notContainsErrors: '非错误',
greaterThan: '大于',
greaterThanOrEqual: '大于等于',
lessThan: '小于',
lessThanOrEqual: '小于等于',
notBetween: '不介于',
between: '介于',
yesterday: '昨日',
tomorrow: '明日',
last7Days: '最近 7 ',
thisMonth: '本月',
lastMonth: '上个月',
nextMonth: '下个月',
thisWeek: '本周',
lastWeek: '上周',
nextWeek: '下周',
today: '今日',
beginsWith: 'Begins with',
endsWith: 'Ends with',
containsText: 'Text contains',
notContainsText: 'Text does not contain',
equal: 'Equal to',
notEqual: 'Not equal to',
containsBlanks: 'Contains Blanks',
notContainsBlanks: 'Does not contain Blanks',
containsErrors: 'Contains Errors',
notContainsErrors: 'Does not contain Errors',
greaterThan: 'Greater than',
greaterThanOrEqual: 'Greater than or equal to',
lessThan: 'Less than',
lessThanOrEqual: 'Less than or equal to',
notBetween: 'Not between',
between: 'Between',
yesterday: 'Yesterday',
tomorrow: 'Tomorrow',
last7Days: 'Last 7 Days',
thisMonth: 'This Month',
lastMonth: 'Last Month',
nextMonth: 'Next Month',
thisWeek: 'This Week',
lastWeek: 'Last Week',
nextWeek: 'Next Week',
today: 'Today',
},
ruleType: {
highlightCell: '突出显示单元格',
dataBar: '数据条',
colorScale: '色阶',
formula: '自定义公式',
iconSet: '图标集',
duplicateValues: '重复值',
uniqueValues: '唯一值',

highlightCell: 'Highlight Cell',
dataBar: 'Data Bar',
colorScale: 'Color Scale',
formula: 'Custom Formula',
iconSet: 'Icon Set',
duplicateValues: 'Duplicate Values',
uniqueValues: 'Unique Values',
},
subRuleType: {
uniqueValues: '唯一值',
duplicateValues: '重复值',
rank: '最前最后',
text: '文本',
timePeriod: '时间日期',
number: '数值',
average: '平均值',
uniqueValues: 'Unique Values',
duplicateValues: 'Duplicate Values',
rank: 'Rank',
text: 'Text',
timePeriod: 'Time Period',
number: 'Number',
average: 'Average',
},
valueType: {
num: '数值',
min: '最小值',
max: '最大值',
percent: '百分比',
percentile: '百分点',
formula: '公式',
none: '',
num: 'Number',
min: 'Minimum',
max: 'Maximum',
percent: 'Percentage',
percentile: 'Percentile',
formula: 'Formula',
none: 'None',
},
},
},
Expand Down

0 comments on commit 785e141

Please sign in to comment.