浏览代码

fix: add string to translate function onboarding widget (#18185) (#18196)

[skip ci]

(cherry picked from commit a7cf590768)

Co-authored-by: Ernesto Ruiz <ernesto_ruiz89@hotmail.com>
version-14
mergify[bot] 2 年前
committed by GitHub
父节点
当前提交
f5eb79d5ed
找不到此签名对应的密钥 GPG 密钥 ID: 4AEE18F83AFDEB23
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      frappe/public/js/frappe/widgets/onboarding_widget.js

+ 2
- 2
frappe/public/js/frappe/widgets/onboarding_widget.js 查看文件

@@ -117,13 +117,13 @@ export default class OnboardingWidget extends Widget {
const set_description = () => {
let content = step.description
? frappe.markdown(step.description)
: `<h1>${step.title}</h1>`;
: `<h1>${__(step.title)}</h1>`;

if (step.action === "Create Entry") {
// add a secondary action to view list
content += `<p>
<a href='/app/${frappe.router.slug(step.reference_document)}'>
${__("Show {0} List", [step.reference_document])}</a>
${__("Show {0} List", [__(step.reference_document)])}</a>
</p>`;
}



正在加载...
取消
保存