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 公式。", "Formula.js supports most Microsoft Excel formula functions.": "Formula.js 支持大部分 Mircrosoft Excel 公式。",
"String template": "字符串模板", "String template": "字符串模板",
"Simple string replacement, can be used to interpolate variables in a string.": "简单的字符串替换,可以用于在字符串中插入变量。", "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": "选择类型", "Choices": "选择类型",
"Checkbox": "勾选", "Checkbox": "勾选",
"Display <icon></icon> when unchecked": "未勾选时显示 <icon></icon>", "Display <icon></icon> when unchecked": "未勾选时显示 <icon></icon>",

View File

@ -12,6 +12,6 @@ import formulajs from '../../utils/formulajs';
export default { export default {
label: 'Formula.js', label: 'Formula.js',
tooltip: '{{t("Formula.js supports most Microsoft Excel formula functions.")}}', 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, evaluate: formulajs,
}; };

View File

@ -12,6 +12,6 @@ import mathjs from '../../utils/mathjs';
export default { export default {
label: 'Math.js', 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.')}}`, 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, evaluate: mathjs,
}; };

View File

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