Skip to content

[data grid] Stop importing locales from @mui/material package #7028

Open
@cherniavskii

Description

@cherniavskii

Summary 💡

Currently, @mui/x-data-grid imports locales from @mui/material:

import { enUS as enUSCore } from '@mui/material/locale';

There are a few issues with this:

  1. When a new locale is added to @mui/material, the grid has to bump the minimal supported version of @mui/material to the version in which the new locale was released.
    Example: [DataGrid] Add Urdu (ur-PK) locale #6866
    This would force our users to upgrade their @mui/material dependency, even though most of them probably won't use the new locale.
  2. We need to decouple the grid core from @mui/material to support other UI libraries like @mui/joy

Examples 🌈

No response

Motivation 🔦

No response

Order ID 💳 (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: data gridThis is the name of the generic UI component, not the React module!discussionl10nlocalization

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions