separated JS and python rules for granuarilty.
Ignore matches with microtemplating that have this structure: `{{.*_.*}}` in string.
9 lines
294 B
JavaScript
9 lines
294 B
JavaScript
|
|
// ok: frappe-missing-translate-function-js
|
|
frappe.msgprint('{{ _("Both login and password required") }}');
|
|
|
|
// ruleid: frappe-missing-translate-function-js
|
|
frappe.msgprint('What');
|
|
|
|
// ok: frappe-missing-translate-function-js
|
|
frappe.throw(' {{ _("Both login and password required") }}. ');
|