Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DataGrid] Allow to change reset text in columns management panel #12972

Merged
merged 3 commits into from
May 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
132 changes: 66 additions & 66 deletions docs/data/data-grid/localization/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,264 +3,264 @@
"languageTag": "ar-SD",
"importName": "arSD",
"localeName": "Arabic (Sudan)",
"missingKeysCount": 3,
"totalKeysCount": 117,
"missingKeysCount": 4,
"totalKeysCount": 118,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/arSD.ts"
},
{
"languageTag": "be-BY",
"importName": "beBY",
"localeName": "Belarusian",
"missingKeysCount": 29,
"totalKeysCount": 117,
"missingKeysCount": 30,
"totalKeysCount": 118,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/beBY.ts"
},
{
"languageTag": "bg-BG",
"importName": "bgBG",
"localeName": "Bulgarian",
"missingKeysCount": 3,
"totalKeysCount": 117,
"missingKeysCount": 4,
"totalKeysCount": 118,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/bgBG.ts"
},
{
"languageTag": "zh-HK",
"importName": "zhHK",
"localeName": "Chinese (Hong Kong)",
"missingKeysCount": 3,
"totalKeysCount": 117,
"missingKeysCount": 4,
"totalKeysCount": 118,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/zhHK.ts"
},
{
"languageTag": "zh-CN",
"importName": "zhCN",
"localeName": "Chinese (Simplified)",
"missingKeysCount": 3,
"totalKeysCount": 117,
"missingKeysCount": 4,
"totalKeysCount": 118,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/zhCN.ts"
},
{
"languageTag": "zh-TW",
"importName": "zhTW",
"localeName": "Chinese (Taiwan)",
"missingKeysCount": 3,
"totalKeysCount": 117,
"missingKeysCount": 4,
"totalKeysCount": 118,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/zhTW.ts"
},
{
"languageTag": "hr-HR",
"importName": "hrHR",
"localeName": "Croatian",
"missingKeysCount": 3,
"totalKeysCount": 117,
"missingKeysCount": 4,
"totalKeysCount": 118,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/hrHR.ts"
},
{
"languageTag": "cs-CZ",
"importName": "csCZ",
"localeName": "Czech",
"missingKeysCount": 3,
"totalKeysCount": 117,
"missingKeysCount": 4,
"totalKeysCount": 118,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/csCZ.ts"
},
{
"languageTag": "da-DK",
"importName": "daDK",
"localeName": "Danish",
"missingKeysCount": 0,
"totalKeysCount": 117,
"missingKeysCount": 1,
"totalKeysCount": 118,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/daDK.ts"
},
{
"languageTag": "nl-NL",
"importName": "nlNL",
"localeName": "Dutch",
"missingKeysCount": 3,
"totalKeysCount": 117,
"missingKeysCount": 4,
"totalKeysCount": 118,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/nlNL.ts"
},
{
"languageTag": "fi-FI",
"importName": "fiFI",
"localeName": "Finnish",
"missingKeysCount": 3,
"totalKeysCount": 117,
"missingKeysCount": 4,
"totalKeysCount": 118,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/fiFI.ts"
},
{
"languageTag": "fr-FR",
"importName": "frFR",
"localeName": "French",
"missingKeysCount": 0,
"totalKeysCount": 117,
"missingKeysCount": 1,
"totalKeysCount": 118,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/frFR.ts"
},
{
"languageTag": "de-DE",
"importName": "deDE",
"localeName": "German",
"missingKeysCount": 0,
"totalKeysCount": 117,
"missingKeysCount": 1,
"totalKeysCount": 118,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/deDE.ts"
},
{
"languageTag": "el-GR",
"importName": "elGR",
"localeName": "Greek",
"missingKeysCount": 3,
"totalKeysCount": 117,
"missingKeysCount": 4,
"totalKeysCount": 118,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/elGR.ts"
},
{
"languageTag": "he-IL",
"importName": "heIL",
"localeName": "Hebrew",
"missingKeysCount": 3,
"totalKeysCount": 117,
"missingKeysCount": 4,
"totalKeysCount": 118,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/heIL.ts"
},
{
"languageTag": "hu-HU",
"importName": "huHU",
"localeName": "Hungarian",
"missingKeysCount": 5,
"totalKeysCount": 117,
"missingKeysCount": 6,
"totalKeysCount": 118,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/huHU.ts"
},
{
"languageTag": "it-IT",
"importName": "itIT",
"localeName": "Italian",
"missingKeysCount": 3,
"totalKeysCount": 117,
"missingKeysCount": 4,
"totalKeysCount": 118,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/itIT.ts"
},
{
"languageTag": "ja-JP",
"importName": "jaJP",
"localeName": "Japanese",
"missingKeysCount": 0,
"totalKeysCount": 117,
"missingKeysCount": 1,
"totalKeysCount": 118,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/jaJP.ts"
},
{
"languageTag": "ko-KR",
"importName": "koKR",
"localeName": "Korean",
"missingKeysCount": 30,
"totalKeysCount": 117,
"missingKeysCount": 31,
"totalKeysCount": 118,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/koKR.ts"
},
{
"languageTag": "nb-NO",
"importName": "nbNO",
"localeName": "Norwegian (Bokmål)",
"missingKeysCount": 28,
"totalKeysCount": 117,
"missingKeysCount": 29,
"totalKeysCount": 118,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/nbNO.ts"
},
{
"languageTag": "fa-IR",
"importName": "faIR",
"localeName": "Persian",
"missingKeysCount": 0,
"totalKeysCount": 117,
"missingKeysCount": 1,
"totalKeysCount": 118,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/faIR.ts"
},
{
"languageTag": "pl-PL",
"importName": "plPL",
"localeName": "Polish",
"missingKeysCount": 30,
"totalKeysCount": 117,
"missingKeysCount": 31,
"totalKeysCount": 118,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/plPL.ts"
},
{
"languageTag": "pt-PT",
"importName": "ptPT",
"localeName": "Portuguese",
"missingKeysCount": 3,
"totalKeysCount": 117,
"missingKeysCount": 4,
"totalKeysCount": 118,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/ptPT.ts"
},
{
"languageTag": "pt-BR",
"importName": "ptBR",
"localeName": "Portuguese (Brazil)",
"missingKeysCount": 0,
"totalKeysCount": 117,
"missingKeysCount": 1,
"totalKeysCount": 118,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/ptBR.ts"
},
{
"languageTag": "ro-RO",
"importName": "roRO",
"localeName": "Romanian",
"missingKeysCount": 3,
"totalKeysCount": 117,
"missingKeysCount": 4,
"totalKeysCount": 118,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/roRO.ts"
},
{
"languageTag": "ru-RU",
"importName": "ruRU",
"localeName": "Russian",
"missingKeysCount": 3,
"totalKeysCount": 117,
"missingKeysCount": 4,
"totalKeysCount": 118,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/ruRU.ts"
},
{
"languageTag": "sk-SK",
"importName": "skSK",
"localeName": "Slovak",
"missingKeysCount": 0,
"totalKeysCount": 117,
"missingKeysCount": 1,
"totalKeysCount": 118,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/skSK.ts"
},
{
"languageTag": "es-ES",
"importName": "esES",
"localeName": "Spanish",
"missingKeysCount": 0,
"totalKeysCount": 117,
"missingKeysCount": 1,
"totalKeysCount": 118,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/esES.ts"
},
{
"languageTag": "sv-SE",
"importName": "svSE",
"localeName": "Swedish",
"missingKeysCount": 0,
"totalKeysCount": 117,
"missingKeysCount": 1,
"totalKeysCount": 118,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/svSE.ts"
},
{
"languageTag": "tr-TR",
"importName": "trTR",
"localeName": "Turkish",
"missingKeysCount": 18,
"totalKeysCount": 117,
"missingKeysCount": 19,
"totalKeysCount": 118,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/trTR.ts"
},
{
"languageTag": "uk-UA",
"importName": "ukUA",
"localeName": "Ukrainian",
"missingKeysCount": 3,
"totalKeysCount": 117,
"missingKeysCount": 4,
"totalKeysCount": 118,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/ukUA.ts"
},
{
"languageTag": "ur-PK",
"importName": "urPK",
"localeName": "Urdu (Pakistan)",
"missingKeysCount": 3,
"totalKeysCount": 117,
"missingKeysCount": 4,
"totalKeysCount": 118,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/urPK.ts"
},
{
"languageTag": "vi-VN",
"importName": "viVN",
"localeName": "Vietnamese",
"missingKeysCount": 3,
"totalKeysCount": 117,
"missingKeysCount": 4,
"totalKeysCount": 118,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/viVN.ts"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ function GridColumnsManagement(props: GridColumnsManagementProps) {
disabled={isResetDisabled}
{...rootProps.slotProps?.baseButton}
>
Reset
{apiRef.current.getLocaleText('columnsManagementReset')}
</rootProps.slots.baseButton>
) : null}
</GridColumnsManagementFooter>
Expand Down
1 change: 1 addition & 0 deletions packages/x-data-grid/src/constants/localeTextConstants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export const GRID_DEFAULT_LOCALE_TEXT: GridLocaleText = {
columnsManagementSearchTitle: 'Search',
columnsManagementNoColumns: 'No columns',
columnsManagementShowHideAllText: 'Show/Hide All',
columnsManagementReset: 'Reset',

// Filter panel text
filterPanelAddFilter: 'Add filter',
Expand Down
1 change: 1 addition & 0 deletions packages/x-data-grid/src/locales/arSD.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const arSDGrid: Partial<GridLocaleText> = {
// columnsManagementSearchTitle: 'Search',
// columnsManagementNoColumns: 'No columns',
// columnsManagementShowHideAllText: 'Show/Hide All',
// columnsManagementReset: 'Reset',

// Filter panel text
filterPanelAddFilter: 'إضافة مرشِح',
Expand Down
1 change: 1 addition & 0 deletions packages/x-data-grid/src/locales/beBY.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ const beBYGrid: Partial<GridLocaleText> = {
// columnsManagementSearchTitle: 'Search',
// columnsManagementNoColumns: 'No columns',
// columnsManagementShowHideAllText: 'Show/Hide All',
// columnsManagementReset: 'Reset',

// Filter panel text
filterPanelAddFilter: 'Дадаць фільтр',
Expand Down
1 change: 1 addition & 0 deletions packages/x-data-grid/src/locales/bgBG.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const bgBGGrid: Partial<GridLocaleText> = {
// columnsManagementSearchTitle: 'Search',
// columnsManagementNoColumns: 'No columns',
// columnsManagementShowHideAllText: 'Show/Hide All',
// columnsManagementReset: 'Reset',

// Filter panel text
filterPanelAddFilter: 'Добави Филтър',
Expand Down
1 change: 1 addition & 0 deletions packages/x-data-grid/src/locales/csCZ.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const csCZGrid: Partial<GridLocaleText> = {
// columnsManagementSearchTitle: 'Search',
// columnsManagementNoColumns: 'No columns',
// columnsManagementShowHideAllText: 'Show/Hide All',
// columnsManagementReset: 'Reset',

// Filter panel text
filterPanelAddFilter: 'Přidat filtr',
Expand Down
1 change: 1 addition & 0 deletions packages/x-data-grid/src/locales/daDK.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const daDKGrid: Partial<GridLocaleText> = {
columnsManagementSearchTitle: 'Søg',
columnsManagementNoColumns: 'Ingen søjler',
columnsManagementShowHideAllText: 'Vis/Skjul Alle',
// columnsManagementReset: 'Reset',

// Filter panel text
filterPanelAddFilter: 'Tilføj filter',
Expand Down
1 change: 1 addition & 0 deletions packages/x-data-grid/src/locales/deDE.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const deDEGrid: Partial<GridLocaleText> = {
columnsManagementSearchTitle: 'Suche',
columnsManagementNoColumns: 'Keine Spalten',
columnsManagementShowHideAllText: 'Alle anzeigen/verbergen',
// columnsManagementReset: 'Reset',

// Filter panel text
filterPanelAddFilter: 'Filter hinzufügen',
Expand Down
Loading