[DataGrid] translation/localization keys not taking effect #3958
Labels
component: data grid
This is the name of the generic UI component, not the React module!
l10n
localization
Duplicates
Latest version
Current behavior 😯
According to docs (https://mui.com/components/data-grid/localization/#locale-text):
If you want to pass language translations directly to the grid without using createTheme and ThemeProvider, you can directly load the language translations from the @mui/x-data-grid or @mui/x-data-grid-pro package
However, in my project, setting up a datagrid like this:
only takes effect for certain parts of the UI. I.e. the column options are properly localized:
wheras the footer in the table is not:
My code example is using v4 but just tested on v5.4.1 and the latest published on npm and same result experienced there. Either this seems like a bug or documentation is off.
Expected behavior 🤔
All keys passed to
localeText
take effect. Now only a subset doesSteps to reproduce 🕹
See "Current behavior"
Context 🔦
See "Current behavior"
Your environment 🌎
`npx @mui/envinfo`
Order ID 💳 (optional)
No response
The text was updated successfully, but these errors were encountered: