trotl-table 1.0.92 → 1.0.93

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/Table.cjs.js CHANGED
@@ -10869,8 +10869,9 @@ function TableInner({
10869
10869
  }
10870
10870
  }, v ? "✓" : "✗");
10871
10871
  }
10872
- // existing highlight logic for other fields
10873
- return highlight(String(v));
10872
+ // Translate only the displayed value; keep the raw value for data operations.
10873
+ const displayValue = col?.translate ? translate(String(v)) : v;
10874
+ return highlight(String(displayValue ?? v));
10874
10875
  }, [highlight, isGrouped, triggerCellCallback, translate, formatArrayValue]);
10875
10876
  const showView = buttons.includes("view");
10876
10877
  const showEdit = buttons.includes("edit");