fizix-io / ra-customizable-datagrid

React Admin plugin that allows to hide / show columns dynamically

Home Page:https://fizix-io.github.io/ra-customizable-datagrid/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for translated field names

gstvg opened this issue · comments

commented

Does this component support translated labels? I'm using it with a translated admin but on dialog selection field names are not translated.

Hello @gstvg ,

No, but this behavior should be easy to add. Please feel free to submit a PR.

https://github.com/fizix-io/ra-customizable-datagrid/blob/master/src/CustomizableDatagrid.js#L46

add withTranslate HOC: https://github.com/marmelab/react-admin/blob/master/docs/Translation.md#withtranslate-hoc and use label: translate(...

commented

#5 fix this

Hello @AkselsLedins ,

It looks like #5 fixes this issue. When you have a chance, could you please review and merge that Pull Request?

Thank you!

Hi @AkselsLedins ,

It would be extremely helpful to have this fixed. Could you please take a look at this one-line fix, when you have a chance? Thank you!

https://github.com/fizix-io/ra-customizable-datagrid/pull/5/files