langsys-js-typescript 0.6.0 → 0.6.1

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/index.mjs CHANGED
@@ -1085,7 +1085,11 @@ var TRANSLATABLE_ATTRIBUTES = [
1085
1085
  ];
1086
1086
  var PHRASE_MARKER_ATTRS = ["data-ls-phrase", "data-langsys-phrase"];
1087
1087
  function isPhraseMarked(element) {
1088
- return PHRASE_MARKER_ATTRS.some((attr) => element.hasAttribute(attr));
1088
+ return PHRASE_MARKER_ATTRS.some((attr) => {
1089
+ if (!element.hasAttribute(attr)) return false;
1090
+ const value = (element.getAttribute(attr) ?? "").toLowerCase();
1091
+ return value !== "false" && value !== "0";
1092
+ });
1089
1093
  }
1090
1094
  var VALUE_TRANSLATABLE_ELEMENTS = ["button"];
1091
1095
  var VALUE_TRANSLATABLE_INPUT_TYPES = ["submit", "button"];