@mui/x-data-grid
Version:
The Community plan edition of the Data Grid components (MUI X).
272 lines (261 loc) • 11.2 kB
JavaScript
import { getGridLocalization } from "../utils/getGridLocalization.js";
const frFRGrid = {
// Root
noRowsLabel: 'Pas de résultats',
noResultsOverlayLabel: 'Aucun résultat.',
// noColumnsOverlayLabel: 'No columns',
// noColumnsOverlayManageColumns: 'Manage columns',
// emptyPivotOverlayLabel: 'Add fields to rows, columns, and values to create a pivot table',
// Density selector toolbar button text
toolbarDensity: 'Densité',
toolbarDensityLabel: 'Densité',
toolbarDensityCompact: 'Compacte',
toolbarDensityStandard: 'Standard',
toolbarDensityComfortable: 'Confortable',
// Columns selector toolbar button text
toolbarColumns: 'Colonnes',
toolbarColumnsLabel: 'Choisir les colonnes',
// Filters toolbar button text
toolbarFilters: 'Filtres',
toolbarFiltersLabel: 'Afficher les filtres',
toolbarFiltersTooltipHide: 'Masquer les filtres',
toolbarFiltersTooltipShow: 'Afficher les filtres',
toolbarFiltersTooltipActive: count => count > 1 ? `${count} filtres actifs` : `${count} filtre actif`,
// Quick filter toolbar field
toolbarQuickFilterPlaceholder: 'Rechercher…',
toolbarQuickFilterLabel: 'Recherche',
toolbarQuickFilterDeleteIconLabel: 'Supprimer',
// Export selector toolbar button text
toolbarExport: 'Exporter',
toolbarExportLabel: 'Exporter',
toolbarExportCSV: 'Télécharger en CSV',
toolbarExportPrint: 'Imprimer',
toolbarExportExcel: 'Télécharger pour Excel',
// Toolbar pivot button
// toolbarPivot: 'Pivot',
// Toolbar AI Assistant button
// toolbarAssistant: 'AI Assistant',
// Columns management text
columnsManagementSearchTitle: 'Rechercher',
columnsManagementNoColumns: 'Pas de colonnes',
columnsManagementShowHideAllText: 'Afficher/masquer toutes',
columnsManagementReset: 'Réinitialiser',
// columnsManagementDeleteIconLabel: 'Clear',
// Filter panel text
filterPanelAddFilter: 'Ajouter un filtre',
filterPanelRemoveAll: 'Tout supprimer',
filterPanelDeleteIconLabel: 'Supprimer',
filterPanelLogicOperator: 'Opérateur logique',
filterPanelOperator: 'Opérateur',
filterPanelOperatorAnd: 'Et',
filterPanelOperatorOr: 'Ou',
filterPanelColumns: 'Colonne',
filterPanelInputLabel: 'Valeur',
filterPanelInputPlaceholder: 'Filtrer la valeur',
// Filter operators text
filterOperatorContains: 'contient',
filterOperatorDoesNotContain: 'ne contient pas',
filterOperatorEquals: 'est égal à',
filterOperatorDoesNotEqual: "n'est pas égal à",
filterOperatorStartsWith: 'commence par',
filterOperatorEndsWith: 'se termine par',
filterOperatorIs: 'est',
filterOperatorNot: "n'est pas",
filterOperatorAfter: 'postérieur',
filterOperatorOnOrAfter: 'égal ou postérieur',
filterOperatorBefore: 'antérieur',
filterOperatorOnOrBefore: 'égal ou antérieur',
filterOperatorIsEmpty: 'est vide',
filterOperatorIsNotEmpty: "n'est pas vide",
filterOperatorIsAnyOf: 'fait partie de',
'filterOperator=': '=',
'filterOperator!=': '!=',
'filterOperator>': '>',
'filterOperator>=': '>=',
'filterOperator<': '<',
'filterOperator<=': '<=',
// Header filter operators text
headerFilterOperatorContains: 'Contient',
headerFilterOperatorDoesNotContain: 'Ne contient pas',
headerFilterOperatorEquals: 'Est égal à',
headerFilterOperatorDoesNotEqual: "N'est pas égal à",
headerFilterOperatorStartsWith: 'Commence par',
headerFilterOperatorEndsWith: 'Se termine par',
headerFilterOperatorIs: 'Est',
headerFilterOperatorNot: "N'est pas",
headerFilterOperatorAfter: 'Postérieur',
headerFilterOperatorOnOrAfter: 'Égal ou postérieur',
headerFilterOperatorBefore: 'Antérieur',
headerFilterOperatorOnOrBefore: 'Égal ou antérieur',
headerFilterOperatorIsEmpty: 'Est vide',
headerFilterOperatorIsNotEmpty: "N'est pas vide",
headerFilterOperatorIsAnyOf: 'Fait partie de',
'headerFilterOperator=': 'Est égal à',
'headerFilterOperator!=': "N'est pas égal à",
'headerFilterOperator>': 'Est supérieur à',
'headerFilterOperator>=': 'Est supérieur ou égal à',
'headerFilterOperator<': 'Est inférieur à',
'headerFilterOperator<=': 'Est inférieur ou égal à',
// headerFilterClear: 'Clear filter',
// Filter values text
filterValueAny: 'tous',
filterValueTrue: 'vrai',
filterValueFalse: 'faux',
// Column menu text
columnMenuLabel: 'Menu',
// columnMenuAriaLabel: (columnName: string) => `${columnName} column menu`,
columnMenuShowColumns: 'Afficher les colonnes',
columnMenuManageColumns: 'Gérer les colonnes',
columnMenuFilter: 'Filtrer',
columnMenuHideColumn: 'Masquer',
columnMenuUnsort: 'Annuler le tri',
columnMenuSortAsc: 'Tri ascendant',
columnMenuSortDesc: 'Tri descendant',
// columnMenuManagePivot: 'Manage pivot',
// Column header text
columnHeaderFiltersTooltipActive: count => count > 1 ? `${count} filtres actifs` : `${count} filtre actif`,
columnHeaderFiltersLabel: 'Afficher les filtres',
columnHeaderSortIconLabel: 'Trier',
// Rows selected footer text
footerRowSelected: count => count > 1 ? `${count.toLocaleString()} lignes sélectionnées` : `${count.toLocaleString()} ligne sélectionnée`,
// Total row amount footer text
footerTotalRows: 'Total de lignes :',
// Total visible row amount footer text
footerTotalVisibleRows: (visibleCount, totalCount) => `${visibleCount.toLocaleString()} sur ${totalCount.toLocaleString()}`,
// Checkbox selection text
checkboxSelectionHeaderName: 'Sélection',
checkboxSelectionSelectAllRows: 'Sélectionner toutes les lignes',
checkboxSelectionUnselectAllRows: 'Désélectionner toutes les lignes',
checkboxSelectionSelectRow: 'Sélectionner la ligne',
checkboxSelectionUnselectRow: 'Désélectionner la ligne',
// Boolean cell text
booleanCellTrueLabel: 'vrai',
booleanCellFalseLabel: 'faux',
// Actions cell more text
actionsCellMore: 'Plus',
// Column pinning text
pinToLeft: 'Épingler à gauche',
pinToRight: 'Épingler à droite',
unpin: 'Désépingler',
// Tree Data
treeDataGroupingHeaderName: 'Groupe',
treeDataExpand: 'afficher les enfants',
treeDataCollapse: 'masquer les enfants',
// Grouping columns
groupingColumnHeaderName: 'Groupe',
groupColumn: name => `Grouper par ${name}`,
unGroupColumn: name => `Arrêter de grouper par ${name}`,
// Master/detail
detailPanelToggle: 'Afficher/masquer les détails',
expandDetailPanel: 'Afficher',
collapseDetailPanel: 'Masquer',
// Pagination
paginationRowsPerPage: 'Lignes par page :',
// paginationDisplayedRows: ({
// from,
// to,
// count,
// estimated
// }) => {
// if (!estimated) {
// return `${from}–${to} of ${count !== -1 ? count : `more than ${to}`}`;
// }
// const estimatedLabel = estimated && estimated > to ? `around ${estimated}` : `more than ${to}`;
// return `${from}–${to} of ${count !== -1 ? count : estimatedLabel}`;
// },
paginationItemAriaLabel: type => {
if (type === 'first') {
return 'Aller à la première page';
}
if (type === 'last') {
return 'Aller à la dernière page';
}
if (type === 'next') {
return 'Aller à la page suivante';
}
// if (type === 'previous') {
return 'Aller à la page précédente';
},
// Row reordering text
rowReorderingHeaderName: 'Positionnement des lignes',
// Aggregation
aggregationMenuItemHeader: 'Agrégation',
aggregationFunctionLabelSum: 'Somme',
aggregationFunctionLabelAvg: 'Moyenne',
aggregationFunctionLabelMin: 'Minimum',
aggregationFunctionLabelMax: 'Maximum',
aggregationFunctionLabelSize: "Nombre d'éléments"
// Pivot panel
// pivotToggleLabel: 'Pivot',
// pivotRows: 'Rows',
// pivotColumns: 'Columns',
// pivotValues: 'Values',
// pivotCloseButton: 'Close pivot settings',
// pivotSearchButton: 'Search fields',
// pivotSearchControlPlaceholder: 'Search fields',
// pivotSearchControlLabel: 'Search fields',
// pivotSearchControlClear: 'Clear search',
// pivotNoFields: 'No fields',
// pivotMenuMoveUp: 'Move up',
// pivotMenuMoveDown: 'Move down',
// pivotMenuMoveToTop: 'Move to top',
// pivotMenuMoveToBottom: 'Move to bottom',
// pivotMenuRows: 'Rows',
// pivotMenuColumns: 'Columns',
// pivotMenuValues: 'Values',
// pivotMenuOptions: 'Field options',
// pivotMenuAddToRows: 'Add to Rows',
// pivotMenuAddToColumns: 'Add to Columns',
// pivotMenuAddToValues: 'Add to Values',
// pivotMenuRemove: 'Remove',
// pivotDragToRows: 'Drag here to create rows',
// pivotDragToColumns: 'Drag here to create columns',
// pivotDragToValues: 'Drag here to create values',
// pivotYearColumnHeaderName: '(Year)',
// pivotQuarterColumnHeaderName: '(Quarter)',
// AI Assistant panel
// aiAssistantPanelTitle: 'AI Assistant',
// aiAssistantPanelClose: 'Close AI Assistant',
// aiAssistantPanelNewConversation: 'New conversation',
// aiAssistantPanelConversationHistory: 'Conversation history',
// aiAssistantPanelEmptyConversation: 'No prompt history',
// aiAssistantSuggestions: 'Suggestions',
// Prompt field
// promptFieldLabel: 'Prompt',
// promptFieldPlaceholder: 'Type a prompt…',
// promptFieldPlaceholderWithRecording: 'Type or record a prompt…',
// promptFieldPlaceholderListening: 'Listening for prompt…',
// promptFieldSpeechRecognitionNotSupported: 'Speech recognition is not supported in this browser',
// promptFieldSend: 'Send',
// promptFieldRecord: 'Record',
// promptFieldStopRecording: 'Stop recording',
// Prompt
// promptRerun: 'Run again',
// promptProcessing: 'Processing…',
// promptAppliedChanges: 'Applied changes',
// Prompt changes
// promptChangeGroupDescription: (column: string) => `Group by ${column}`,
// promptChangeAggregationLabel: (column: string, aggregation: string) => `${column} (${aggregation})`,
// promptChangeAggregationDescription: (column: string, aggregation: string) => `Aggregate ${column} (${aggregation})`,
// promptChangeFilterLabel: (column: string, operator: string, value: string) => {
// if (operator === 'is any of') {
// return `${column} is any of: ${value}`;
// }
// return `${column} ${operator} ${value}`;
// },
// promptChangeFilterDescription: (column: string, operator: string, value: string) => {
// if (operator === 'is any of') {
// return `Filter where ${column} is any of: ${value}`;
// }
// return `Filter where ${column} ${operator} ${value}`;
// },
// promptChangeSortDescription: (column: string, direction: string) => `Sort by ${column} (${direction})`,
// promptChangePivotEnableLabel: 'Pivot',
// promptChangePivotEnableDescription: 'Enable pivot',
// promptChangePivotColumnsLabel: (count: number) => `Columns (${count})`,
// promptChangePivotColumnsDescription: (column: string, direction: string) => `${column}${direction ? ` (${direction})` : ''}`,
// promptChangePivotRowsLabel: (count: number) => `Rows (${count})`,
// promptChangePivotValuesLabel: (count: number) => `Values (${count})`,
// promptChangePivotValuesDescription: (column: string, aggregation: string) => `${column} (${aggregation})`,
};
export const frFR = getGridLocalization(frFRGrid);