@yuneta/gobj-ui 7.23.125 → 7.23.126
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/gobj-ui.cjs.js +2 -2
- package/dist/gobj-ui.es.js +2 -2
- package/package.json +1 -1
- package/src/yui_tabulator_i18n.js +10 -4
package/dist/gobj-ui.cjs.js
CHANGED
|
@@ -6030,8 +6030,6 @@ function yui_tabulator_name_row_selects(table, t) {
|
|
|
6030
6030
|
}
|
|
6031
6031
|
function yui_tabulator_relocalize(table, t) {
|
|
6032
6032
|
if (!table) return;
|
|
6033
|
-
yui_tabulator_name_filters(table, t);
|
|
6034
|
-
yui_tabulator_name_row_selects(table, t);
|
|
6035
6033
|
try {
|
|
6036
6034
|
let name = next_lang_name();
|
|
6037
6035
|
let strings = tabulator_strings(t);
|
|
@@ -6041,6 +6039,8 @@ function yui_tabulator_relocalize(table, t) {
|
|
|
6041
6039
|
if (localize && typeof localize.installLang === "function") localize.installLang(name, strings);
|
|
6042
6040
|
else (0, _yuneta_gobj_js.log_warning)("yui_tabulator_relocalize: no localize module: Tabulator's own chrome stays in the old language");
|
|
6043
6041
|
table.setLocale(name);
|
|
6042
|
+
yui_tabulator_name_filters(table, t);
|
|
6043
|
+
yui_tabulator_name_row_selects(table, t);
|
|
6044
6044
|
} catch (e) {
|
|
6045
6045
|
(0, _yuneta_gobj_js.log_warning)(`yui_tabulator_relocalize: table gone: ${e}`);
|
|
6046
6046
|
}
|
package/dist/gobj-ui.es.js
CHANGED
|
@@ -6025,8 +6025,6 @@ function yui_tabulator_name_row_selects(table, t) {
|
|
|
6025
6025
|
}
|
|
6026
6026
|
function yui_tabulator_relocalize(table, t) {
|
|
6027
6027
|
if (!table) return;
|
|
6028
|
-
yui_tabulator_name_filters(table, t);
|
|
6029
|
-
yui_tabulator_name_row_selects(table, t);
|
|
6030
6028
|
try {
|
|
6031
6029
|
let name = next_lang_name();
|
|
6032
6030
|
let strings = tabulator_strings(t);
|
|
@@ -6036,6 +6034,8 @@ function yui_tabulator_relocalize(table, t) {
|
|
|
6036
6034
|
if (localize && typeof localize.installLang === "function") localize.installLang(name, strings);
|
|
6037
6035
|
else log_warning("yui_tabulator_relocalize: no localize module: Tabulator's own chrome stays in the old language");
|
|
6038
6036
|
table.setLocale(name);
|
|
6037
|
+
yui_tabulator_name_filters(table, t);
|
|
6038
|
+
yui_tabulator_name_row_selects(table, t);
|
|
6039
6039
|
} catch (e) {
|
|
6040
6040
|
log_warning(`yui_tabulator_relocalize: table gone: ${e}`);
|
|
6041
6041
|
}
|
package/package.json
CHANGED
|
@@ -192,10 +192,6 @@ function yui_tabulator_relocalize(table, t)
|
|
|
192
192
|
if(!table) {
|
|
193
193
|
return;
|
|
194
194
|
}
|
|
195
|
-
/* Neither the header filters nor the row-selection boxes have a
|
|
196
|
-
* name of their own; give them one again in the new language. */
|
|
197
|
-
yui_tabulator_name_filters(table, t);
|
|
198
|
-
yui_tabulator_name_row_selects(table, t);
|
|
199
195
|
try {
|
|
200
196
|
let name = next_lang_name();
|
|
201
197
|
let strings = tabulator_strings(t);
|
|
@@ -219,6 +215,16 @@ function yui_tabulator_relocalize(table, t)
|
|
|
219
215
|
}
|
|
220
216
|
|
|
221
217
|
table.setLocale(name); /* a NEW name: this is what re-renders */
|
|
218
|
+
|
|
219
|
+
/* AFTER setLocale, never before. Neither the header filters nor
|
|
220
|
+
* the row-selection boxes have a name of their own, and the
|
|
221
|
+
* re-render setLocale triggers REBUILDS the header -- so a name
|
|
222
|
+
* written first is thrown away with the old header, and the boxes
|
|
223
|
+
* come back in Tabulator's English. Which is exactly what a dump
|
|
224
|
+
* of the deployed page showed: clean on first paint, "Select Row"
|
|
225
|
+
* again after one language change. */
|
|
226
|
+
yui_tabulator_name_filters(table, t);
|
|
227
|
+
yui_tabulator_name_row_selects(table, t);
|
|
222
228
|
} catch(e) {
|
|
223
229
|
log_warning(`yui_tabulator_relocalize: table gone: ${e}`);
|
|
224
230
|
}
|