fix(evaluators): change reference links to doc site (#6021)

This commit is contained in:
Junyi 2025-01-09 10:16:43 +08:00 committed by GitHub
parent 390c41a164
commit edcdf00ea3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 6 additions and 4 deletions

View File

@ -274,6 +274,8 @@
"Formula.js supports most Microsoft Excel formula functions.": "Formula.js 支持大部分 Mircrosoft Excel 公式。",
"String template": "字符串模板",
"Simple string replacement, can be used to interpolate variables in a string.": "简单的字符串替换,可以用于在字符串中插入变量。",
"https://docs.nocobase.com/handbook/calculation-engines/formula": "https://docs-cn.nocobase.com/handbook/calculation-engines/formula",
"https://docs.nocobase.com/handbook/calculation-engines/mathjs": "https://docs-cn.nocobase.com/handbook/calculation-engines/mathjs",
"Choices": "选择类型",
"Checkbox": "勾选",
"Display <icon></icon> when unchecked": "未勾选时显示 <icon></icon>",
@ -1041,4 +1043,4 @@
"Search plugin...": "搜索插件...",
"Package name": "包名",
"Fields can only be used correctly if they are defined with an interface.": "只有字段设置了interface字段才能正常使用"
}
}

View File

@ -12,6 +12,6 @@ import formulajs from '../../utils/formulajs';
export default {
label: 'Formula.js',
tooltip: '{{t("Formula.js supports most Microsoft Excel formula functions.")}}',
link: 'https://formulajs.info/functions/',
link: 'https://docs.nocobase.com/handbook/calculation-engines/formula',
evaluate: formulajs,
};

View File

@ -12,6 +12,6 @@ import mathjs from '../../utils/mathjs';
export default {
label: 'Math.js',
tooltip: `{{t('Math.js comes with a large set of built-in functions and constants, and offers an integrated solution to work with different data types.')}}`,
link: 'https://mathjs.org/',
link: 'https://docs.nocobase.com/handbook/calculation-engines/mathjs',
evaluate: mathjs,
};

View File

@ -31,7 +31,7 @@ export const renderEngineReference = (key: string) => {
>
{i18n.t('Syntax references')}
</span>
<a href={engine.link} target="_blank" rel="noreferrer">
<a href={i18n.t(engine.link)} target="_blank" rel="noreferrer">
{engine.label}
</a>
</>