@yuneta/gobj-ui 7.10.2 → 7.10.3

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.
@@ -18539,7 +18539,7 @@ function build_delete_question(gobj, records) {
18539
18539
  String(impact.children)
18540
18540
  ], [
18541
18541
  "span",
18542
- { i18n: "children will be unlinked, not deleted" },
18542
+ {},
18543
18543
  (0, i18next.t)("children will be unlinked, not deleted", { count: impact.children })
18544
18544
  ]]
18545
18545
  ]);
@@ -18562,7 +18562,7 @@ function build_delete_question(gobj, records) {
18562
18562
  ],
18563
18563
  [
18564
18564
  "span",
18565
- { i18n: "parents" },
18565
+ {},
18566
18566
  (0, i18next.t)("parents", { count: impact.parents })
18567
18567
  ]
18568
18568
  ]
@@ -18534,7 +18534,7 @@ function build_delete_question(gobj, records) {
18534
18534
  String(impact.children)
18535
18535
  ], [
18536
18536
  "span",
18537
- { i18n: "children will be unlinked, not deleted" },
18537
+ {},
18538
18538
  t("children will be unlinked, not deleted", { count: impact.children })
18539
18539
  ]]
18540
18540
  ]);
@@ -18557,7 +18557,7 @@ function build_delete_question(gobj, records) {
18557
18557
  ],
18558
18558
  [
18559
18559
  "span",
18560
- { i18n: "parents" },
18560
+ {},
18561
18561
  t("parents", { count: impact.parents })
18562
18562
  ]
18563
18563
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuneta/gobj-ui",
3
- "version": "7.10.2",
3
+ "version": "7.10.3",
4
4
  "type": "module",
5
5
  "main": "dist/gobj-ui.cjs.js",
6
6
  "module": "dist/gobj-ui.es.js",
@@ -3071,11 +3071,16 @@ function build_delete_question(gobj, records)
3071
3071
  style: ROW}, [
3072
3072
  ["strong", {}, String(impact.children)],
3073
3073
  /* `count` picks the singular: i18next looks for the `_one`
3074
- * variant and falls back to the base key for the plural, so
3075
- * the validator still sees a key it can find. Safe against a
3076
- * language switch because this is a MODAL — a dialog with a
3077
- * backdrop never sees one; the language button is behind it. */
3078
- ["span", {i18n: "children will be unlinked, not deleted"},
3074
+ * variant and falls back to the base key for the plural, so the
3075
+ * validator still sees a key it can find.
3076
+ *
3077
+ * And NO `i18n` attribute on a counted word: refresh_language()
3078
+ * re-translates whatever carries one, calling t() WITHOUT the
3079
+ * count — which put the plural straight back over the singular.
3080
+ * A counted word cannot be re-translated from its key alone.
3081
+ * Nothing is lost: this is a MODAL, and a dialog with a backdrop
3082
+ * never sees a language change — the button is behind it. */
3083
+ ["span", {},
3079
3084
  t("children will be unlinked, not deleted", {count: impact.children})]
3080
3085
  ]]);
3081
3086
  }
@@ -3083,7 +3088,7 @@ function build_delete_question(gobj, records)
3083
3088
  lines.push(["p", {class: "DELETE_ASK_PARENTS", style: ROW}, [
3084
3089
  ["span", {i18n: "it will be detached from"}, t("it will be detached from")],
3085
3090
  ["strong", {}, String(impact.parents)],
3086
- ["span", {i18n: "parents"}, t("parents", {count: impact.parents})]
3091
+ ["span", {}, t("parents", {count: impact.parents})]
3087
3092
  ]]);
3088
3093
  }
3089
3094