Theme localization for DataGrid doesn't apply with custom translations #3796
Labels
component: data grid
This is the name of the generic UI component, not the React module!
l10n
localization
Duplicates
Latest version
Current behavior 😯
The language doesn't apply when passing in translations for DataGridPro to our custom theme. However, passing the custom translation directly to DataGridPro using
localeText
does apply.Expected behavior 🤔
I would assume that the themed localization would apply globally to all instances of DataGridPro, so that we didn't have to pass the custom translations around to each and every implementation of DataGridPro.
Steps to reproduce 🕹
Steps:
createTheme({}, danish, customGridLocale)
Codesandbox example
Context 🔦
I'm trying to translate DataGridPro.
Your environment 🌎
`npx @mui/envinfo`
Order ID 💳 (optional)
#34405
The text was updated successfully, but these errors were encountered: