Cannot add custom keys to the localization object without type errors #434
Replies: 4 comments
-
What's your use case here? This is meant to replace strings in MRT components, if you need a new string you should probably add it to a custom component. |
Beta Was this translation helpful? Give feedback.
-
Thanks for responding. Specifically this is the use case at the moment. I want to add my own filters. |
Beta Was this translation helpful? Give feedback.
-
I suppose I could work around this but doesn't it make sense for all translations to be in the same |
Beta Was this translation helpful? Give feedback.
-
i18n support is very basic (just a big plain object), this is by design because we don't want to constrain the users into any i18n solution. So if you need anything on top you would have to implement it in userland. FWIW, in my case I use |
Beta Was this translation helpful? Give feedback.
-
mantine-react-table version
2.0.0-beta.7
react & react-dom versions
18.3.1
Describe the bug and the steps to reproduce it
It's simple.
If you add a custom key it shows a type error - "Object literal may only specify known properties ..."
How can I overcome this problem?
Minimal, Reproducible Example - (Optional, but Recommended)
N/A
Screenshots or Videos (Optional)
Do you intend to try to help solve this bug with your own PR?
No, because I do not know how
Terms
Beta Was this translation helpful? Give feedback.
All reactions