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.esm.js CHANGED
@@ -10847,8 +10847,9 @@ function TableInner({
10847
10847
  }
10848
10848
  }, v ? "✓" : "✗");
10849
10849
  }
10850
- // existing highlight logic for other fields
10851
- return highlight(String(v));
10850
+ // Translate only the displayed value; keep the raw value for data operations.
10851
+ const displayValue = col?.translate ? translate(String(v)) : v;
10852
+ return highlight(String(displayValue ?? v));
10852
10853
  }, [highlight, isGrouped, triggerCellCallback, translate, formatArrayValue]);
10853
10854
  const showView = buttons.includes("view");
10854
10855
  const showEdit = buttons.includes("edit");