material-table-core / core

Datatable for React based on material-ui's table with additional features. Support us at https://opencollective.com/material-table-core
https://material-table-core.github.io
MIT License
296 stars 146 forks source link

Tooltips of Add and Delete buttons do not use localization #744

Closed Kitsune401 closed 1 year ago

Kitsune401 commented 1 year ago

Describe the bug From 5.1.3 to current version 5.1.11, there's a bug affecting the tooltips of the Add and Delete buttons when localization is used. Localized tooltips are not applied, until an action is done like add or deletion of records.

https://codesandbox.io/s/agitated-borg-73z2gn?file=/src/App.js

To Reproduce Steps to reproduce the behavior:

  1. Look at the tooltips of Add and Delete buttons
  2. Delete or add a record
  3. Check the tooltips again

Expected behavior Tooltips are supposed to use localization even before doing any action

Screenshots image image After adding or deleting at least one record : image image

Desktop (please complete the following information):

Domino987 commented 1 year ago

Please use the latest version, where this should work.