title: MUI DataGrid Error: TypeError: Cannot read properties of undefined (reading 'MuiDataGrid')
body: <p>I was trying to change the language of the default parameters of my <code>DataGrid</code> MUI parameters and for some reason I'm getting an error when I try to add the <code>localeText</code> I'm following the exact instructions from their resource page, <a href="https://mui.com/components/data-grid/localization/#locale-text" rel="nofollow noreferrer">Locale Text</a></p>
  <p><a href="https://i.stack.imgur.com/JFazr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JFazr.png" alt="enter image description here" /></a></p>
  <p>This is the error it shows:</p>
  <p><a href="https://i.stack.imgur.com/vZHUJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vZHUJ.png" alt="enter image description here" /></a></p>
  <p>This is what I'm doing (just adding relevant code):</p>
  <pre><code>import { DataGrid, esES} from '@mui/x-data-grid';
  
  &lt;DataGrid 
    localeText={esES.props.MuiDataGrid.localeText}
    rows={estudiantes}
    columns={columns}
    autoPageSize 
  /&gt;
  </code></pre>