307 lines
13 KiB
JavaScript
307 lines
13 KiB
JavaScript
import { getGridLocalization, buildLocaleFormat } from "../utils/getGridLocalization.mjs";
|
||
const formatNumber = buildLocaleFormat('fr-FR');
|
||
const frFRGrid = {
|
||
// Root
|
||
noRowsLabel: 'Pas de résultats',
|
||
noResultsOverlayLabel: 'Aucun résultat.',
|
||
noColumnsOverlayLabel: 'Aucune colonne',
|
||
noColumnsOverlayManageColumns: 'Gérer les colonnes',
|
||
// 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',
|
||
// Undo/redo toolbar button text
|
||
toolbarUndo: 'Annuler',
|
||
toolbarRedo: 'Rétablir',
|
||
// 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 charts button
|
||
// toolbarCharts: 'Charts',
|
||
|
||
// Toolbar AI Assistant button
|
||
toolbarAssistant: 'Assistant IA',
|
||
// Columns management text
|
||
columnsManagementSearchTitle: 'Rechercher',
|
||
columnsManagementNoColumns: 'Pas de colonnes',
|
||
columnsManagementShowHideAllText: 'Afficher/masquer toutes',
|
||
columnsManagementReset: 'Réinitialiser',
|
||
columnsManagementDeleteIconLabel: 'Effacer',
|
||
// Filter panel text
|
||
filterPanelAddFilter: 'Ajouter un filtre',
|
||
filterPanelRemoveAll: 'Tout supprimer',
|
||
filterPanelDeleteIconLabel: 'Supprimer',
|
||
filterPanelLogicOperator: 'Opérateur logique',
|
||
filterPanelOperator: 'Opérateur',
|
||
filterPanelOperatorAnd: 'Et',
|
||
filterPanelOperatorOr: 'Ou',
|
||
filterPanelColumn: '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: 'Effacer le filtre',
|
||
// Filter values text
|
||
filterValueAny: 'tous',
|
||
filterValueTrue: 'vrai',
|
||
filterValueFalse: 'faux',
|
||
// Column menu text
|
||
columnMenuLabel: 'Menu',
|
||
columnMenuAriaLabel: columnName => `Menu pour la colonne ${columnName}`,
|
||
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',
|
||
// columnMenuManageCharts: 'Manage charts',
|
||
|
||
// 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',
|
||
// Long text cell
|
||
longTextCellExpandLabel: 'Afficher',
|
||
longTextCellCollapseLabel: 'Masquer',
|
||
// 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 `${formatNumber(from)}–${formatNumber(to)} sur ${count !== -1 ? formatNumber(count) : `plus de ${formatNumber(to)}`}`;
|
||
}
|
||
const estimatedLabel = estimated && estimated > to ? `environ ${formatNumber(estimated)}` : `plus de ${formatNumber(to)}`;
|
||
return `${formatNumber(from)}–${formatNumber(to)} sur ${count !== -1 ? formatNumber(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',
|
||
// aggregationFunctionLabelNone: 'none',
|
||
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)',
|
||
|
||
// Charts configuration panel
|
||
chartsNoCharts: 'Aucun graphique disponible',
|
||
chartsChartNotSelected: 'Sélectionnez un type de graphique pour configurer ses options',
|
||
chartsTabChart: 'Graphique',
|
||
chartsTabFields: 'Champs',
|
||
chartsTabCustomize: 'Personnaliser',
|
||
chartsCloseButton: 'Fermer la configuration des graphiques',
|
||
chartsSyncButtonLabel: 'Synchroniser le graphique',
|
||
chartsSearchPlaceholder: 'Rechercher des champs',
|
||
chartsSearchLabel: 'Rechercher des champs',
|
||
chartsSearchClear: 'Effacer la recherche',
|
||
chartsNoFields: 'Aucun champ',
|
||
// chartsFieldBlocked: 'This field cannot be added to any section',
|
||
chartsCategories: 'Catégories',
|
||
chartsSeries: 'Séries',
|
||
chartsMenuAddToDimensions: dimensionLabel => `Ajouter aux ${dimensionLabel}`,
|
||
chartsMenuAddToValues: valuesLabel => `Ajouter aux ${valuesLabel}`,
|
||
chartsMenuMoveUp: 'Déplacer vers le haut',
|
||
chartsMenuMoveDown: 'Déplacer vers le bas',
|
||
chartsMenuMoveToTop: 'Déplacer en haut',
|
||
chartsMenuMoveToBottom: 'Déplacer en bas',
|
||
chartsMenuOptions: 'Options du champ',
|
||
chartsMenuRemove: 'Supprimer',
|
||
chartsDragToDimensions: dimensionLabel => `Faites glisser ici pour utiliser la colonne comme ${dimensionLabel}`,
|
||
chartsDragToValues: valuesLabel => `Faites glisser ici pour utiliser la colonne comme ${valuesLabel}`
|
||
|
||
// 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})`,
|
||
// promptChangeChartsLabel: (dimensionsCount: number, valuesCount: number) => `Dimensions (${dimensionsCount}), Values (${valuesCount})`,
|
||
};
|
||
export const frFR = getGridLocalization(frFRGrid); |