fix: fields locales (#3511)
This commit is contained in:
parent
28eae4a85b
commit
202edc8c15
@ -60,7 +60,7 @@ export default {
|
|||||||
group: 'advanced',
|
group: 'advanced',
|
||||||
order: 1,
|
order: 1,
|
||||||
title: `{{t("Formula", { ns: "${NAMESPACE}" })}}`,
|
title: `{{t("Formula", { ns: "${NAMESPACE}" })}}`,
|
||||||
description: `{{t("Compute a value based on the other fields", { ns: "${NAMESPACE}" })}}`,
|
description: `{{t("Configure and store the results of calculations between multiple field values in the same record, supporting both Math.js and Excel formula functions.", { ns: "${NAMESPACE}" })}}`,
|
||||||
sortable: true,
|
sortable: true,
|
||||||
default: {
|
default: {
|
||||||
type: 'formula',
|
type: 'formula',
|
||||||
|
@ -4,5 +4,5 @@
|
|||||||
"Expression": "表达式",
|
"Expression": "表达式",
|
||||||
"Expression syntax error": "表达式语法错误",
|
"Expression syntax error": "表达式语法错误",
|
||||||
"Syntax references": "语法参考",
|
"Syntax references": "语法参考",
|
||||||
"Compute a value based on the other fields": "基于其他字段进行计算"
|
"Configure and store the results of calculations between multiple field values in the same record, supporting both Math.js and Excel formula functions.": "可以配置并存储同一条记录的多字段值之间的计算结果,支持 Math.js 和 Excel formula functions 两种引擎。"
|
||||||
}
|
}
|
||||||
|
@ -103,25 +103,12 @@ const RuleTypes = {
|
|||||||
title: `{{t("Autoincrement", { ns: "${NAMESPACE}" })}}`,
|
title: `{{t("Autoincrement", { ns: "${NAMESPACE}" })}}`,
|
||||||
optionRenders: {
|
optionRenders: {
|
||||||
digits: function Digits({ value }) {
|
digits: function Digits({ value }) {
|
||||||
const { t } = useTranslation();
|
return <code>{value}</code>;
|
||||||
return <span>{t('{{value}} Digits', { ns: NAMESPACE, value })}</span>;
|
|
||||||
},
|
},
|
||||||
start: function Start({ value }) {
|
start: function Start({ value }) {
|
||||||
const { t } = useTranslation();
|
return <code>{value}</code>;
|
||||||
return <span>{t('Starts from {{value}}', { ns: NAMESPACE, value })}</span>;
|
|
||||||
},
|
|
||||||
cycle: function Cycle({ value }) {
|
|
||||||
return (
|
|
||||||
<SchemaComponent
|
|
||||||
schema={{
|
|
||||||
type: 'string',
|
|
||||||
name: 'cycle',
|
|
||||||
'x-component': 'Cron',
|
|
||||||
'x-read-pretty': true,
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
);
|
|
||||||
},
|
},
|
||||||
|
cycle: Cron.ReadPretty,
|
||||||
},
|
},
|
||||||
fieldset: {
|
fieldset: {
|
||||||
digits: {
|
digits: {
|
||||||
@ -275,6 +262,7 @@ export const sequence: IField = {
|
|||||||
group: 'advanced',
|
group: 'advanced',
|
||||||
order: 3,
|
order: 3,
|
||||||
title: `{{t("Sequence", { ns: "${NAMESPACE}" })}}`,
|
title: `{{t("Sequence", { ns: "${NAMESPACE}" })}}`,
|
||||||
|
description: `{{t("Automatically generate codes based on configured rules, supporting combinations of dates, numbers, and text.", { ns: "${NAMESPACE}" })}}`,
|
||||||
sortable: true,
|
sortable: true,
|
||||||
default: {
|
default: {
|
||||||
type: 'sequence',
|
type: 'sequence',
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"Sequence": "自动编码",
|
"Sequence": "自动编码",
|
||||||
|
"Automatically generate codes based on configured rules, supporting combinations of dates, numbers, and text.": "根据配置的规则自动生成编码,支持日期、数字、文本的组合。",
|
||||||
"Sequence rules": "编号规则",
|
"Sequence rules": "编号规则",
|
||||||
"Add rule": "添加规则",
|
"Add rule": "添加规则",
|
||||||
"Inputable": "可输入",
|
"Inputable": "可输入",
|
||||||
|
@ -10,7 +10,7 @@ export default {
|
|||||||
group: 'advanced',
|
group: 'advanced',
|
||||||
order: 1,
|
order: 1,
|
||||||
title: `{{t("Expression", { ns: "${NAMESPACE}" })}}`,
|
title: `{{t("Expression", { ns: "${NAMESPACE}" })}}`,
|
||||||
description: `{{t("An expression for calculation in each rows", { ns: "${NAMESPACE}" })}}`,
|
description: `{{t("Used to store expressions for use in workflows so that different expressions can be called for different data.", { ns: "${NAMESPACE}" })}}`,
|
||||||
sortable: true,
|
sortable: true,
|
||||||
default: {
|
default: {
|
||||||
type: 'text',
|
type: 'text',
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
{
|
{
|
||||||
|
"Expression": "表达式",
|
||||||
"Dynamic Calculation": "动态表达式计算",
|
"Dynamic Calculation": "动态表达式计算",
|
||||||
"Calculate an expression based on a calculation engine and obtain a value as the result. Variables in the upstream nodes can be used in the expression. The expression is dynamic one from an expression collections.": "基于计算引擎计算表达式并获取值作为结果。可以在表达式中使用上游节点的变量。表达式是从表达式表中动态获取的。",
|
"Calculate an expression based on a calculation engine and obtain a value as the result. Variables in the upstream nodes can be used in the expression. The expression is dynamic one from an expression collections.": "基于计算引擎计算表达式并获取值作为结果。可以在表达式中使用上游节点的变量。表达式是从表达式表中动态获取的。",
|
||||||
"Select dynamic expression": "选择动态表达式",
|
"Select dynamic expression": "选择动态表达式",
|
||||||
"Select the dynamic expression queried from the upstream node. You need to query it from an expression collection.": "从上游节点中选择查询出来的动态表达式。你需要从动态表达式类型的数据表中查询。",
|
"Select the dynamic expression queried from the upstream node. You need to query it from an expression collection.": "从上游节点中选择查询出来的动态表达式。你需要从动态表达式类型的数据表中查询。",
|
||||||
"Variable datasource": "变量数据源",
|
"Variable datasource": "变量数据源",
|
||||||
"Dynamic expression": "动态表达式",
|
"Dynamic expression": "动态表达式",
|
||||||
"An expression for calculation in each rows": "每行数据计算规则不同时使用",
|
"Used to store expressions for use in workflows so that different expressions can be called for different data.": "用于存储表达式,在工作流中使用,以便针对不同的数据调用不同的表达式。",
|
||||||
"Unconfigured": "未配置",
|
"Unconfigured": "未配置",
|
||||||
"Calculation result": "运算结果"
|
"Calculation result": "运算结果"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user