Skip to content

Commit 4439579

Browse files
committed
Localize table filter UI strings
1 parent a0e107a commit 4439579

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

great_docs/assets/tbl-explorer.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@
341341
var input = document.createElement("input");
342342
input.type = isNumeric(col.dtype) ? "number" : "text";
343343
input.className = "gd-tbl-fw-input";
344-
input.placeholder = "Enter value\u2026";
344+
input.placeholder = _gdT("tbl_filter_enter_value", "Enter value\u2026");
345345
input.setAttribute("aria-label", "Filter value");
346346
inputRow.appendChild(input);
347347

@@ -352,19 +352,19 @@
352352
caseBtn.className = "gd-tbl-fw-case";
353353
caseBtn.textContent = "Aa";
354354
caseBtn.setAttribute("aria-label", "Toggle case sensitivity");
355-
caseBtn.title = "Case insensitive";
355+
caseBtn.title = _gdT("tbl_filter_case_insensitive", "Case insensitive");
356356
caseBtn.addEventListener("click", function () {
357357
caseSensitive = !caseSensitive;
358358
caseBtn.classList.toggle("active", caseSensitive);
359-
caseBtn.title = caseSensitive ? "Case sensitive" : "Case insensitive";
359+
caseBtn.title = caseSensitive ? _gdT("tbl_filter_case_sensitive", "Case sensitive") : _gdT("tbl_filter_case_insensitive", "Case insensitive");
360360
});
361361
inputRow.appendChild(caseBtn);
362362
}
363363
wizard.appendChild(inputRow);
364364

365365
var commitBtn = document.createElement("button");
366366
commitBtn.className = "gd-tbl-btn gd-tbl-fw-commit";
367-
commitBtn.textContent = "Apply";
367+
commitBtn.textContent = _gdT("tbl_filter_apply", "Apply");
368368
commitBtn.addEventListener("click", function () {
369369
var val = input.value.trim();
370370
if (!val) return;
@@ -400,26 +400,26 @@
400400
var inputLo = document.createElement("input");
401401
inputLo.type = "number";
402402
inputLo.className = "gd-tbl-fw-input";
403-
inputLo.placeholder = "min";
403+
inputLo.placeholder = _gdT("tbl_filter_min", "min");
404404
inputLo.setAttribute("aria-label", "Minimum value");
405405
row.appendChild(inputLo);
406406

407407
var sep = document.createElement("span");
408-
sep.textContent = " and ";
408+
sep.textContent = " " + _gdT("tbl_filter_and", "and") + " ";
409409
sep.className = "gd-tbl-fw-sep";
410410
row.appendChild(sep);
411411

412412
var inputHi = document.createElement("input");
413413
inputHi.type = "number";
414414
inputHi.className = "gd-tbl-fw-input";
415-
inputHi.placeholder = "max";
415+
inputHi.placeholder = _gdT("tbl_filter_max", "max");
416416
inputHi.setAttribute("aria-label", "Maximum value");
417417
row.appendChild(inputHi);
418418
wizard.appendChild(row);
419419

420420
var commitBtn = document.createElement("button");
421421
commitBtn.className = "gd-tbl-btn gd-tbl-fw-commit";
422-
commitBtn.textContent = "Apply";
422+
commitBtn.textContent = _gdT("tbl_filter_apply", "Apply");
423423
commitBtn.addEventListener("click", function () {
424424
var lo = inputLo.value.trim();
425425
var hi = inputHi.value.trim();

0 commit comments

Comments
 (0)