From b8a8bf4474cb720c2c598bafd6c01f22c0631803 Mon Sep 17 00:00:00 2001 From: Jaap Mol Date: Tue, 14 Dec 2021 10:55:19 +0100 Subject: [PATCH 1/3] Fix missing translations dutch, fix incorrect translations of filterOperatorAfter, filterOperatorOnOrAfter, filterOperatorBefore, filterOperatorOnOrBefore --- packages/grid/_modules_/grid/locales/nlNL.ts | 233 ++++++++++--------- 1 file changed, 118 insertions(+), 115 deletions(-) diff --git a/packages/grid/_modules_/grid/locales/nlNL.ts b/packages/grid/_modules_/grid/locales/nlNL.ts index 3f5793a5a1c2..92370ed04d72 100644 --- a/packages/grid/_modules_/grid/locales/nlNL.ts +++ b/packages/grid/_modules_/grid/locales/nlNL.ts @@ -1,120 +1,123 @@ -import { nlNL as nlNLCore } from '@mui/material/locale'; -import { GridLocaleText } from '../models/api/gridLocaleTextApi'; -import { getGridLocalization, Localization } from '../utils/getGridLocalization'; +import {nlNL as nlNLCore} from '@mui/material/locale'; +import {GridLocaleText} from '../models/api/gridLocaleTextApi'; +import {getGridLocalization, Localization} from '../utils/getGridLocalization'; const nlNLGrid: Partial = { - // Root - noRowsLabel: 'Geen resultaten.', - // noResultsOverlayLabel: 'No results found.', - errorOverlayDefaultLabel: 'Er deed zich een fout voor.', - - // Density selector toolbar button text - toolbarDensity: 'Grootte', - toolbarDensityLabel: 'Grootte', - toolbarDensityCompact: 'Compact', - toolbarDensityStandard: 'Normaal', - toolbarDensityComfortable: 'Breed', - - // Columns selector toolbar button text - toolbarColumns: 'Kolommen', - toolbarColumnsLabel: 'Kies kolommen', - - // Filters toolbar button text - toolbarFilters: 'Filters', - toolbarFiltersLabel: 'Toon filters', - toolbarFiltersTooltipHide: 'Verberg filters', - toolbarFiltersTooltipShow: 'Toon filters', - toolbarFiltersTooltipActive: (count) => - count > 1 ? `${count} actieve filters` : `${count} filter actief`, - - // Export selector toolbar button text - // toolbarExport: 'Export', - // toolbarExportLabel: 'Export', - // toolbarExportCSV: 'Download as CSV', - // toolbarExportPrint: 'Print', - - // Columns panel text - columnsPanelTextFieldLabel: 'Zoek kolom', - columnsPanelTextFieldPlaceholder: 'Kolomtitel', - columnsPanelDragIconLabel: 'Kolom herschikken', - columnsPanelShowAllButton: 'Alles tonen', - columnsPanelHideAllButton: 'Alles verbergen', - - // Filter panel text - filterPanelAddFilter: 'Filter toevoegen', - filterPanelDeleteIconLabel: 'Verwijderen', - filterPanelOperators: 'Operatoren', - filterPanelOperatorAnd: 'En', - filterPanelOperatorOr: 'Of', - filterPanelColumns: 'Kolommen', - filterPanelInputLabel: 'Waarde', - filterPanelInputPlaceholder: 'Filter waarde', - - // Filter operators text - filterOperatorContains: 'bevat', - filterOperatorEquals: 'gelijk aan', - filterOperatorStartsWith: 'begint met', - filterOperatorEndsWith: 'eindigt met', - filterOperatorIs: 'is', - filterOperatorNot: 'is niet', - filterOperatorAfter: 'is voor', - filterOperatorOnOrAfter: 'is gelijk of er voor', - filterOperatorBefore: 'is na', - filterOperatorOnOrBefore: 'is gelijk of er na', - // filterOperatorIsEmpty: 'is empty', - // filterOperatorIsNotEmpty: 'is not empty', - - // Filter values text - // filterValueAny: 'any', - // filterValueTrue: 'true', - // filterValueFalse: 'false', - - // Column menu text - columnMenuLabel: 'Menu', - columnMenuShowColumns: 'Toon kolommen', - columnMenuFilter: 'Filteren', - columnMenuHideColumn: 'Verbergen', - columnMenuUnsort: 'Annuleer sortering', - columnMenuSortAsc: 'Oplopend sorteren', - columnMenuSortDesc: 'Aflopend sorteren', - - // Column header text - columnHeaderFiltersTooltipActive: (count) => - count > 1 ? `${count} actieve filters` : `${count} filter actief`, - columnHeaderFiltersLabel: 'Toon filters', - columnHeaderSortIconLabel: 'Sorteren', - - // Rows selected footer text - footerRowSelected: (count) => - count > 1 - ? `${count.toLocaleString()} rijen geselecteerd` - : `${count.toLocaleString()} rij geselecteerd`, - - // Total rows footer text - footerTotalRows: 'Totaal:', - - // Total visible rows footer text - // footerTotalVisibleRows: (visibleCount, totalCount) => `${visibleCount.toLocaleString()} of ${totalCount.toLocaleString()}`, - - // Checkbox selection text - // checkboxSelectionHeaderName: 'Checkbox selection', - - // Boolean cell text - // booleanCellTrueLabel: 'true', - // booleanCellFalseLabel: 'false', - - // Actions cell more text - // actionsCellMore: 'more', - - // Column pinning text - // pinToLeft: 'Pin to left', - // pinToRight: 'Pin to right', - // unpin: 'Unpin', - - // Tree Data - // treeDataGroupingHeaderName: 'Group', - // treeDataExpand: 'see children', - // treeDataCollapse: 'hide children', + // Root + noRowsLabel: 'Geen resultaten.', + noResultsOverlayLabel: 'Geen resultaten gevonden.', + errorOverlayDefaultLabel: 'Er deed zich een fout voor.', + + // Density selector toolbar button text + toolbarDensity: 'Grootte', + toolbarDensityLabel: 'Grootte', + toolbarDensityCompact: 'Compact', + toolbarDensityStandard: 'Normaal', + toolbarDensityComfortable: 'Breed', + + // Columns selector toolbar button text + toolbarColumns: 'Kolommen', + toolbarColumnsLabel: 'Kies kolommen', + + // Filters toolbar button text + toolbarFilters: 'Filters', + toolbarFiltersLabel: 'Toon filters', + toolbarFiltersTooltipHide: 'Verberg filters', + toolbarFiltersTooltipShow: 'Toon filters', + toolbarFiltersTooltipActive: (count) => + count > 1 ? `${count} actieve filters` : `${count} filter actief`, + + // Export selector toolbar button text + toolbarExport: 'Exporteren', + toolbarExportLabel: 'Exporteren', + toolbarExportCSV: 'Exporteer naar CSV', + toolbarExportPrint: 'Print', + + // Columns panel text + columnsPanelTextFieldLabel: 'Zoek kolom', + columnsPanelTextFieldPlaceholder: 'Kolomtitel', + columnsPanelDragIconLabel: 'Kolom herschikken', + columnsPanelShowAllButton: 'Alles tonen', + columnsPanelHideAllButton: 'Alles verbergen', + + // Filter panel text + filterPanelAddFilter: 'Filter toevoegen', + filterPanelDeleteIconLabel: 'Verwijderen', + filterPanelOperators: 'Operatoren', + filterPanelOperatorAnd: 'En', + filterPanelOperatorOr: 'Of', + filterPanelColumns: 'Kolommen', + filterPanelInputLabel: 'Waarde', + filterPanelInputPlaceholder: 'Filter waarde', + + // Filter operators text + filterOperatorContains: 'bevat', + filterOperatorEquals: 'gelijk aan', + filterOperatorStartsWith: 'begint met', + filterOperatorEndsWith: 'eindigt met', + filterOperatorIs: 'is', + filterOperatorNot: 'is niet', + filterOperatorAfter: 'is na', + filterOperatorOnOrAfter: 'is gelijk of er na', + filterOperatorBefore: 'is voor', + filterOperatorOnOrBefore: 'is gelijk of er voor', + filterOperatorIsEmpty: "is leeg", + filterOperatorIsNotEmpty: "is niet leeg", + + // Filter values text + filterValueAny: "alles", + filterValueFalse: "onwaar", + filterValueTrue: "waar", + + // Column menu text + columnMenuLabel: 'Menu', + columnMenuShowColumns: 'Toon kolommen', + columnMenuFilter: 'Filteren', + columnMenuHideColumn: 'Verbergen', + columnMenuUnsort: 'Annuleer sortering', + columnMenuSortAsc: 'Oplopend sorteren', + columnMenuSortDesc: 'Aflopend sorteren', + + // Column header text + columnHeaderFiltersTooltipActive: (count) => + count > 1 ? `${count} actieve filters` : `${count} filter actief`, + columnHeaderFiltersLabel: 'Toon filters', + columnHeaderSortIconLabel: 'Sorteren', + + // Rows selected footer text + footerRowSelected: (count) => + count > 1 + ? `${count.toLocaleString()} rijen geselecteerd` + : `${count.toLocaleString()} rij geselecteerd`, + + // Total rows footer text + footerTotalRows: 'Totaal:', + + // Total visible rows footer text + footerTotalVisibleRows: (visibleCount, totalCount) => `${visibleCount.toLocaleString()} van ${totalCount.toLocaleString()}`, + + // Checkbox selection text + checkboxSelectionHeaderName: 'Checkbox selectie', + + // Boolean cell text + booleanCellTrueLabel: 'waar', + booleanCellFalseLabel: 'onwaar', + + // Actions cell more text + actionsCellMore: 'meer', + + // Column pinning text + pinToLeft: 'Links vastzetten', + pinToRight: 'Rechts vastzetten', + unpin: 'Losmaken', + + // Tree Data + treeDataGroupingHeaderName: 'Groep', + treeDataExpand: 'Uitvouwen', + treeDataCollapse: 'Inklappen', + + // Used core components translation keys + MuiTablePagination: {}, }; export const nlNL: Localization = getGridLocalization(nlNLGrid, nlNLCore); From 9dc23a40a2e5ad8b79c6e26f585aa751d847bb23 Mon Sep 17 00:00:00 2001 From: Jaap Mol Date: Tue, 14 Dec 2021 11:08:53 +0100 Subject: [PATCH 2/3] Run yarn prettier --- packages/grid/_modules_/grid/locales/nlNL.ts | 237 ++++++++++--------- 1 file changed, 119 insertions(+), 118 deletions(-) diff --git a/packages/grid/_modules_/grid/locales/nlNL.ts b/packages/grid/_modules_/grid/locales/nlNL.ts index 92370ed04d72..38b92367c400 100644 --- a/packages/grid/_modules_/grid/locales/nlNL.ts +++ b/packages/grid/_modules_/grid/locales/nlNL.ts @@ -1,123 +1,124 @@ -import {nlNL as nlNLCore} from '@mui/material/locale'; -import {GridLocaleText} from '../models/api/gridLocaleTextApi'; -import {getGridLocalization, Localization} from '../utils/getGridLocalization'; +import { nlNL as nlNLCore } from '@mui/material/locale'; +import { GridLocaleText } from '../models/api/gridLocaleTextApi'; +import { getGridLocalization, Localization } from '../utils/getGridLocalization'; const nlNLGrid: Partial = { - // Root - noRowsLabel: 'Geen resultaten.', - noResultsOverlayLabel: 'Geen resultaten gevonden.', - errorOverlayDefaultLabel: 'Er deed zich een fout voor.', - - // Density selector toolbar button text - toolbarDensity: 'Grootte', - toolbarDensityLabel: 'Grootte', - toolbarDensityCompact: 'Compact', - toolbarDensityStandard: 'Normaal', - toolbarDensityComfortable: 'Breed', - - // Columns selector toolbar button text - toolbarColumns: 'Kolommen', - toolbarColumnsLabel: 'Kies kolommen', - - // Filters toolbar button text - toolbarFilters: 'Filters', - toolbarFiltersLabel: 'Toon filters', - toolbarFiltersTooltipHide: 'Verberg filters', - toolbarFiltersTooltipShow: 'Toon filters', - toolbarFiltersTooltipActive: (count) => - count > 1 ? `${count} actieve filters` : `${count} filter actief`, - - // Export selector toolbar button text - toolbarExport: 'Exporteren', - toolbarExportLabel: 'Exporteren', - toolbarExportCSV: 'Exporteer naar CSV', - toolbarExportPrint: 'Print', - - // Columns panel text - columnsPanelTextFieldLabel: 'Zoek kolom', - columnsPanelTextFieldPlaceholder: 'Kolomtitel', - columnsPanelDragIconLabel: 'Kolom herschikken', - columnsPanelShowAllButton: 'Alles tonen', - columnsPanelHideAllButton: 'Alles verbergen', - - // Filter panel text - filterPanelAddFilter: 'Filter toevoegen', - filterPanelDeleteIconLabel: 'Verwijderen', - filterPanelOperators: 'Operatoren', - filterPanelOperatorAnd: 'En', - filterPanelOperatorOr: 'Of', - filterPanelColumns: 'Kolommen', - filterPanelInputLabel: 'Waarde', - filterPanelInputPlaceholder: 'Filter waarde', - - // Filter operators text - filterOperatorContains: 'bevat', - filterOperatorEquals: 'gelijk aan', - filterOperatorStartsWith: 'begint met', - filterOperatorEndsWith: 'eindigt met', - filterOperatorIs: 'is', - filterOperatorNot: 'is niet', - filterOperatorAfter: 'is na', - filterOperatorOnOrAfter: 'is gelijk of er na', - filterOperatorBefore: 'is voor', - filterOperatorOnOrBefore: 'is gelijk of er voor', - filterOperatorIsEmpty: "is leeg", - filterOperatorIsNotEmpty: "is niet leeg", - - // Filter values text - filterValueAny: "alles", - filterValueFalse: "onwaar", - filterValueTrue: "waar", - - // Column menu text - columnMenuLabel: 'Menu', - columnMenuShowColumns: 'Toon kolommen', - columnMenuFilter: 'Filteren', - columnMenuHideColumn: 'Verbergen', - columnMenuUnsort: 'Annuleer sortering', - columnMenuSortAsc: 'Oplopend sorteren', - columnMenuSortDesc: 'Aflopend sorteren', - - // Column header text - columnHeaderFiltersTooltipActive: (count) => - count > 1 ? `${count} actieve filters` : `${count} filter actief`, - columnHeaderFiltersLabel: 'Toon filters', - columnHeaderSortIconLabel: 'Sorteren', - - // Rows selected footer text - footerRowSelected: (count) => - count > 1 - ? `${count.toLocaleString()} rijen geselecteerd` - : `${count.toLocaleString()} rij geselecteerd`, - - // Total rows footer text - footerTotalRows: 'Totaal:', - - // Total visible rows footer text - footerTotalVisibleRows: (visibleCount, totalCount) => `${visibleCount.toLocaleString()} van ${totalCount.toLocaleString()}`, - - // Checkbox selection text - checkboxSelectionHeaderName: 'Checkbox selectie', - - // Boolean cell text - booleanCellTrueLabel: 'waar', - booleanCellFalseLabel: 'onwaar', - - // Actions cell more text - actionsCellMore: 'meer', - - // Column pinning text - pinToLeft: 'Links vastzetten', - pinToRight: 'Rechts vastzetten', - unpin: 'Losmaken', - - // Tree Data - treeDataGroupingHeaderName: 'Groep', - treeDataExpand: 'Uitvouwen', - treeDataCollapse: 'Inklappen', - - // Used core components translation keys - MuiTablePagination: {}, + // Root + noRowsLabel: 'Geen resultaten.', + noResultsOverlayLabel: 'Geen resultaten gevonden.', + errorOverlayDefaultLabel: 'Er deed zich een fout voor.', + + // Density selector toolbar button text + toolbarDensity: 'Grootte', + toolbarDensityLabel: 'Grootte', + toolbarDensityCompact: 'Compact', + toolbarDensityStandard: 'Normaal', + toolbarDensityComfortable: 'Breed', + + // Columns selector toolbar button text + toolbarColumns: 'Kolommen', + toolbarColumnsLabel: 'Kies kolommen', + + // Filters toolbar button text + toolbarFilters: 'Filters', + toolbarFiltersLabel: 'Toon filters', + toolbarFiltersTooltipHide: 'Verberg filters', + toolbarFiltersTooltipShow: 'Toon filters', + toolbarFiltersTooltipActive: (count) => + count > 1 ? `${count} actieve filters` : `${count} filter actief`, + + // Export selector toolbar button text + toolbarExport: 'Exporteren', + toolbarExportLabel: 'Exporteren', + toolbarExportCSV: 'Exporteer naar CSV', + toolbarExportPrint: 'Print', + + // Columns panel text + columnsPanelTextFieldLabel: 'Zoek kolom', + columnsPanelTextFieldPlaceholder: 'Kolomtitel', + columnsPanelDragIconLabel: 'Kolom herschikken', + columnsPanelShowAllButton: 'Alles tonen', + columnsPanelHideAllButton: 'Alles verbergen', + + // Filter panel text + filterPanelAddFilter: 'Filter toevoegen', + filterPanelDeleteIconLabel: 'Verwijderen', + filterPanelOperators: 'Operatoren', + filterPanelOperatorAnd: 'En', + filterPanelOperatorOr: 'Of', + filterPanelColumns: 'Kolommen', + filterPanelInputLabel: 'Waarde', + filterPanelInputPlaceholder: 'Filter waarde', + + // Filter operators text + filterOperatorContains: 'bevat', + filterOperatorEquals: 'gelijk aan', + filterOperatorStartsWith: 'begint met', + filterOperatorEndsWith: 'eindigt met', + filterOperatorIs: 'is', + filterOperatorNot: 'is niet', + filterOperatorAfter: 'is na', + filterOperatorOnOrAfter: 'is gelijk of er na', + filterOperatorBefore: 'is voor', + filterOperatorOnOrBefore: 'is gelijk of er voor', + filterOperatorIsEmpty: 'is leeg', + filterOperatorIsNotEmpty: 'is niet leeg', + + // Filter values text + filterValueAny: 'alles', + filterValueFalse: 'onwaar', + filterValueTrue: 'waar', + + // Column menu text + columnMenuLabel: 'Menu', + columnMenuShowColumns: 'Toon kolommen', + columnMenuFilter: 'Filteren', + columnMenuHideColumn: 'Verbergen', + columnMenuUnsort: 'Annuleer sortering', + columnMenuSortAsc: 'Oplopend sorteren', + columnMenuSortDesc: 'Aflopend sorteren', + + // Column header text + columnHeaderFiltersTooltipActive: (count) => + count > 1 ? `${count} actieve filters` : `${count} filter actief`, + columnHeaderFiltersLabel: 'Toon filters', + columnHeaderSortIconLabel: 'Sorteren', + + // Rows selected footer text + footerRowSelected: (count) => + count > 1 + ? `${count.toLocaleString()} rijen geselecteerd` + : `${count.toLocaleString()} rij geselecteerd`, + + // Total rows footer text + footerTotalRows: 'Totaal:', + + // Total visible rows footer text + footerTotalVisibleRows: (visibleCount, totalCount) => + `${visibleCount.toLocaleString()} van ${totalCount.toLocaleString()}`, + + // Checkbox selection text + checkboxSelectionHeaderName: 'Checkbox selectie', + + // Boolean cell text + booleanCellTrueLabel: 'waar', + booleanCellFalseLabel: 'onwaar', + + // Actions cell more text + actionsCellMore: 'meer', + + // Column pinning text + pinToLeft: 'Links vastzetten', + pinToRight: 'Rechts vastzetten', + unpin: 'Losmaken', + + // Tree Data + treeDataGroupingHeaderName: 'Groep', + treeDataExpand: 'Uitvouwen', + treeDataCollapse: 'Inklappen', + + // Used core components translation keys + MuiTablePagination: {}, }; export const nlNL: Localization = getGridLocalization(nlNLGrid, nlNLCore); From e48c046eca909751455c89b94501c4bcd0e72373 Mon Sep 17 00:00:00 2001 From: Jaap Mol Date: Tue, 14 Dec 2021 11:25:02 +0100 Subject: [PATCH 3/3] Run yarn l10n --- packages/grid/_modules_/grid/locales/nlNL.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/grid/_modules_/grid/locales/nlNL.ts b/packages/grid/_modules_/grid/locales/nlNL.ts index 38b92367c400..791053caebd9 100644 --- a/packages/grid/_modules_/grid/locales/nlNL.ts +++ b/packages/grid/_modules_/grid/locales/nlNL.ts @@ -66,8 +66,8 @@ const nlNLGrid: Partial = { // Filter values text filterValueAny: 'alles', - filterValueFalse: 'onwaar', filterValueTrue: 'waar', + filterValueFalse: 'onwaar', // Column menu text columnMenuLabel: 'Menu', @@ -116,9 +116,6 @@ const nlNLGrid: Partial = { treeDataGroupingHeaderName: 'Groep', treeDataExpand: 'Uitvouwen', treeDataCollapse: 'Inklappen', - - // Used core components translation keys - MuiTablePagination: {}, }; export const nlNL: Localization = getGridLocalization(nlNLGrid, nlNLCore);