Merge pull request #7988 from scmmishra/web-form-grid-translation

refactor: translated table headings
This commit is contained in:
mergify[bot] 2019-07-26 05:54:03 +00:00 committed by GitHub
commit a2fc720ccf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -154,7 +154,7 @@ export default class WebFormList {
add_heading(row, "Sr.");
this.columns.forEach(col => {
let th = document.createElement("th");
let text = document.createTextNode(col.label);
let text = document.createTextNode(__(col.label));
th.appendChild(text);
row.appendChild(th);
});