|
| 1 | +import { GridLocaleText } from '../models/api/gridLocaleTextApi'; |
| 2 | +import { getGridLocalization, Localization } from '../utils/getGridLocalization'; |
| 3 | + |
| 4 | +const caESGrid: Partial<GridLocaleText> = { |
| 5 | + // Root |
| 6 | + noRowsLabel: 'Sense files', |
| 7 | + noResultsOverlayLabel: "No s'han trobat resultats", |
| 8 | + noColumnsOverlayLabel: 'Cap columna', |
| 9 | + noColumnsOverlayManageColumns: 'Gestiona les columnes', |
| 10 | + emptyPivotOverlayLabel: 'Afegiu camps a files, columnes i valors per crear una taula dinàmica', |
| 11 | + |
| 12 | + // Density selector toolbar button text |
| 13 | + toolbarDensity: 'Densitat', |
| 14 | + toolbarDensityLabel: 'Densitat', |
| 15 | + toolbarDensityCompact: 'Compacta', |
| 16 | + toolbarDensityStandard: 'Estàndard', |
| 17 | + toolbarDensityComfortable: 'Còmoda', |
| 18 | + |
| 19 | + // Columns selector toolbar button text |
| 20 | + toolbarColumns: 'Columnes', |
| 21 | + toolbarColumnsLabel: 'Selecciona columnes', |
| 22 | + |
| 23 | + // Filters toolbar button text |
| 24 | + toolbarFilters: 'Filtres', |
| 25 | + toolbarFiltersLabel: 'Mostra filtres', |
| 26 | + toolbarFiltersTooltipHide: 'Amaga filtres', |
| 27 | + toolbarFiltersTooltipShow: 'Mostra filtres', |
| 28 | + toolbarFiltersTooltipActive: (count) => |
| 29 | + count > 1 ? `${count} filtres actius` : `${count} filtre actiu`, |
| 30 | + |
| 31 | + // Quick filter toolbar field |
| 32 | + toolbarQuickFilterPlaceholder: 'Cerca…', |
| 33 | + toolbarQuickFilterLabel: 'Cerca', |
| 34 | + toolbarQuickFilterDeleteIconLabel: 'Neteja', |
| 35 | + |
| 36 | + // Export selector toolbar button text |
| 37 | + toolbarExport: 'Exporta', |
| 38 | + toolbarExportLabel: 'Exporta', |
| 39 | + toolbarExportCSV: 'Baixa com a CSV', |
| 40 | + toolbarExportPrint: 'Imprimeix', |
| 41 | + toolbarExportExcel: 'Baixa com a Excel', |
| 42 | + |
| 43 | + // Toolbar pivot button |
| 44 | + toolbarPivot: 'Taula dinàmica', |
| 45 | + |
| 46 | + // Toolbar charts button |
| 47 | + toolbarCharts: 'Gràfics', |
| 48 | + |
| 49 | + // Toolbar AI Assistant button |
| 50 | + toolbarAssistant: "Assistent d'IA", |
| 51 | + |
| 52 | + // Columns management text |
| 53 | + columnsManagementSearchTitle: 'Cerca', |
| 54 | + columnsManagementNoColumns: 'Sense columnes', |
| 55 | + columnsManagementShowHideAllText: 'Mostra/Amaga-ho tot', |
| 56 | + columnsManagementReset: 'Restableix', |
| 57 | + columnsManagementDeleteIconLabel: 'Neteja', |
| 58 | + |
| 59 | + // Filter panel text |
| 60 | + filterPanelAddFilter: 'Afegeix filtre', |
| 61 | + filterPanelRemoveAll: "Elimina'ls tots", |
| 62 | + filterPanelDeleteIconLabel: 'Esborra', |
| 63 | + filterPanelLogicOperator: 'Operador lògic', |
| 64 | + filterPanelOperator: 'Operadors', |
| 65 | + filterPanelOperatorAnd: 'I', |
| 66 | + filterPanelOperatorOr: 'O', |
| 67 | + filterPanelColumns: 'Columnes', |
| 68 | + filterPanelInputLabel: 'Valor', |
| 69 | + filterPanelInputPlaceholder: 'Valor del filtre', |
| 70 | + |
| 71 | + // Filter operators text |
| 72 | + filterOperatorContains: 'conté', |
| 73 | + filterOperatorDoesNotContain: 'no conté', |
| 74 | + filterOperatorEquals: 'és igual a', |
| 75 | + filterOperatorDoesNotEqual: 'no és igual a', |
| 76 | + filterOperatorStartsWith: 'comença per', |
| 77 | + filterOperatorEndsWith: 'acaba en', |
| 78 | + filterOperatorIs: 'és', |
| 79 | + filterOperatorNot: 'no és', |
| 80 | + filterOperatorAfter: 'és posterior', |
| 81 | + filterOperatorOnOrAfter: 'és igual o posterior', |
| 82 | + filterOperatorBefore: 'és anterior', |
| 83 | + filterOperatorOnOrBefore: 'és igual o anterior', |
| 84 | + filterOperatorIsEmpty: 'està buit', |
| 85 | + filterOperatorIsNotEmpty: 'no està buit', |
| 86 | + filterOperatorIsAnyOf: 'és qualsevol de', |
| 87 | + 'filterOperator=': '=', |
| 88 | + 'filterOperator!=': '!=', |
| 89 | + 'filterOperator>': '>', |
| 90 | + 'filterOperator>=': '>=', |
| 91 | + 'filterOperator<': '<', |
| 92 | + 'filterOperator<=': '<=', |
| 93 | + |
| 94 | + // Header filter operators text |
| 95 | + headerFilterOperatorContains: 'Conté', |
| 96 | + headerFilterOperatorDoesNotContain: 'No conté', |
| 97 | + headerFilterOperatorEquals: 'És igual a', |
| 98 | + headerFilterOperatorDoesNotEqual: 'No és igual a', |
| 99 | + headerFilterOperatorStartsWith: 'Comença per', |
| 100 | + headerFilterOperatorEndsWith: 'Acaba en', |
| 101 | + headerFilterOperatorIs: 'És', |
| 102 | + headerFilterOperatorNot: 'No és', |
| 103 | + headerFilterOperatorAfter: 'És posterior a', |
| 104 | + headerFilterOperatorOnOrAfter: 'És igual o posterior a', |
| 105 | + headerFilterOperatorBefore: 'És anterior a', |
| 106 | + headerFilterOperatorOnOrBefore: 'És igual o anterior a', |
| 107 | + headerFilterOperatorIsEmpty: 'Està buit', |
| 108 | + headerFilterOperatorIsNotEmpty: 'No està buit', |
| 109 | + headerFilterOperatorIsAnyOf: 'És qualsevol de', |
| 110 | + 'headerFilterOperator=': 'És igual a', |
| 111 | + 'headerFilterOperator!=': 'No és igual a', |
| 112 | + 'headerFilterOperator>': 'És més gran que', |
| 113 | + 'headerFilterOperator>=': 'És més gran o igual que', |
| 114 | + 'headerFilterOperator<': 'És més petit que', |
| 115 | + 'headerFilterOperator<=': 'És més petit o igual que', |
| 116 | + headerFilterClear: 'Neteja filtres', |
| 117 | + |
| 118 | + // Filter values text |
| 119 | + filterValueAny: 'qualsevol', |
| 120 | + filterValueTrue: 'veritable', |
| 121 | + filterValueFalse: 'fals', |
| 122 | + |
| 123 | + // Column menu text |
| 124 | + columnMenuLabel: 'Menú', |
| 125 | + columnMenuAriaLabel: (columnName: string) => `Menú de la columna ${columnName}`, |
| 126 | + columnMenuShowColumns: 'Mostra columnes', |
| 127 | + columnMenuManageColumns: 'Gestiona columnes', |
| 128 | + columnMenuFilter: 'Filtre', |
| 129 | + columnMenuHideColumn: 'Amaga', |
| 130 | + columnMenuUnsort: 'Desordena', |
| 131 | + columnMenuSortAsc: 'Ordena ASC', |
| 132 | + columnMenuSortDesc: 'Ordena DESC', |
| 133 | + columnMenuManagePivot: 'Gestiona la taula dinàmica', |
| 134 | + columnMenuManageCharts: 'Gestiona els gràfics', |
| 135 | + |
| 136 | + // Column header text |
| 137 | + columnHeaderFiltersTooltipActive: (count) => |
| 138 | + count > 1 ? `${count} filtres actius` : `${count} filtre actiu`, |
| 139 | + columnHeaderFiltersLabel: 'Mostra filtres', |
| 140 | + columnHeaderSortIconLabel: 'Ordena', |
| 141 | + |
| 142 | + // Rows selected footer text |
| 143 | + footerRowSelected: (count) => |
| 144 | + count > 1 |
| 145 | + ? `${count.toLocaleString()} files seleccionades` |
| 146 | + : `${count.toLocaleString()} fila seleccionada`, |
| 147 | + |
| 148 | + // Total row amount footer text |
| 149 | + footerTotalRows: 'Files totals:', |
| 150 | + |
| 151 | + // Total visible row amount footer text |
| 152 | + footerTotalVisibleRows: (visibleCount, totalCount) => |
| 153 | + `${visibleCount.toLocaleString()} de ${totalCount.toLocaleString()}`, |
| 154 | + |
| 155 | + // Checkbox selection text |
| 156 | + checkboxSelectionHeaderName: 'Casella de selecció', |
| 157 | + checkboxSelectionSelectAllRows: 'Selecciona totes les files', |
| 158 | + checkboxSelectionUnselectAllRows: 'Desselecciona totes les files', |
| 159 | + checkboxSelectionSelectRow: 'Selecciona fila', |
| 160 | + checkboxSelectionUnselectRow: 'Desselecciona fila', |
| 161 | + |
| 162 | + // Boolean cell text |
| 163 | + booleanCellTrueLabel: 'sí', |
| 164 | + booleanCellFalseLabel: 'no', |
| 165 | + |
| 166 | + // Actions cell more text |
| 167 | + actionsCellMore: 'més', |
| 168 | + |
| 169 | + // Column pinning text |
| 170 | + pinToLeft: "Fixa a l'esquerra", |
| 171 | + pinToRight: 'Fixa a la dreta', |
| 172 | + unpin: 'Desfixa', |
| 173 | + |
| 174 | + // Tree Data |
| 175 | + treeDataGroupingHeaderName: 'Grup', |
| 176 | + treeDataExpand: 'mostra fills', |
| 177 | + treeDataCollapse: 'amaga fills', |
| 178 | + |
| 179 | + // Grouping columns |
| 180 | + groupingColumnHeaderName: 'Grup', |
| 181 | + groupColumn: (name) => `Agrupa per ${name}`, |
| 182 | + unGroupColumn: (name) => `No agrupis per ${name}`, |
| 183 | + |
| 184 | + // Master/detail |
| 185 | + detailPanelToggle: 'Alterna detall', |
| 186 | + expandDetailPanel: 'Expandeix', |
| 187 | + collapseDetailPanel: 'Contrau', |
| 188 | + |
| 189 | + // Pagination |
| 190 | + paginationRowsPerPage: 'Files per pàgina:', |
| 191 | + paginationDisplayedRows: ({ from, to, count, estimated }) => { |
| 192 | + if (!estimated) { |
| 193 | + return `${from}–${to} de ${count !== -1 ? count : `més de ${to}`}`; |
| 194 | + } |
| 195 | + const estimatedLabel = |
| 196 | + estimated && estimated > to ? `al voltant de ${estimated}` : `més de ${to}`; |
| 197 | + return `${from}–${to} de ${count !== -1 ? count : estimatedLabel}`; |
| 198 | + }, |
| 199 | + paginationItemAriaLabel: (type) => { |
| 200 | + if (type === 'first') { |
| 201 | + return 'Vés a la primera pàgina'; |
| 202 | + } |
| 203 | + if (type === 'last') { |
| 204 | + return "Vés a l'última pàgina"; |
| 205 | + } |
| 206 | + if (type === 'next') { |
| 207 | + return 'Vés a la pàgina següent'; |
| 208 | + } |
| 209 | + // if (type === 'previous') { |
| 210 | + return 'Vés a la pàgina anterior'; |
| 211 | + }, |
| 212 | + |
| 213 | + // Row reordering text |
| 214 | + rowReorderingHeaderName: 'Reordena files', |
| 215 | + |
| 216 | + // Aggregation |
| 217 | + aggregationMenuItemHeader: 'Agregació', |
| 218 | + aggregationFunctionLabelNone: 'cap', |
| 219 | + aggregationFunctionLabelSum: 'suma', |
| 220 | + aggregationFunctionLabelAvg: 'mitjana', |
| 221 | + aggregationFunctionLabelMin: 'mínim', |
| 222 | + aggregationFunctionLabelMax: 'màxim', |
| 223 | + aggregationFunctionLabelSize: 'recompte', |
| 224 | + |
| 225 | + // Pivot panel |
| 226 | + pivotToggleLabel: 'Taula dinàmica', |
| 227 | + pivotRows: 'Files', |
| 228 | + pivotColumns: 'Columnes', |
| 229 | + pivotValues: 'Valors', |
| 230 | + pivotCloseButton: 'Tanca la configuració de taula dinàmica', |
| 231 | + pivotSearchButton: 'Camps de cerca', |
| 232 | + pivotSearchControlPlaceholder: 'Camps de cerca', |
| 233 | + pivotSearchControlLabel: 'Camps de cerca', |
| 234 | + pivotSearchControlClear: 'Neteja la cerca', |
| 235 | + pivotNoFields: 'Cap camp', |
| 236 | + pivotMenuMoveUp: 'Mou amunt', |
| 237 | + pivotMenuMoveDown: 'Mou avall', |
| 238 | + pivotMenuMoveToTop: 'Mou al principi', |
| 239 | + pivotMenuMoveToBottom: 'Mou al final', |
| 240 | + pivotMenuRows: 'Files', |
| 241 | + pivotMenuColumns: 'Columnes', |
| 242 | + pivotMenuValues: 'Valors', |
| 243 | + pivotMenuOptions: 'Opcions del camp', |
| 244 | + pivotMenuAddToRows: 'Afegeix a files', |
| 245 | + pivotMenuAddToColumns: 'Afegeix a columnes', |
| 246 | + pivotMenuAddToValues: 'Afegeix a valors', |
| 247 | + pivotMenuRemove: 'Elimina', |
| 248 | + pivotDragToRows: 'Arrossega aquí per crear files', |
| 249 | + pivotDragToColumns: 'Arrossega aquí per crear columnes', |
| 250 | + pivotDragToValues: 'Arrossega aquí per crear valors', |
| 251 | + pivotYearColumnHeaderName: '(Any)', |
| 252 | + pivotQuarterColumnHeaderName: '(Trimestre)', |
| 253 | + |
| 254 | + // Charts configuration panel |
| 255 | + chartsNoCharts: 'No hi ha cap gràfic disponible', |
| 256 | + chartsChartNotSelected: 'Selecciona un tipus de gràfic per configurar les seves opcions', |
| 257 | + chartsTabChart: 'Gràfic', |
| 258 | + chartsTabFields: 'Camps', |
| 259 | + chartsTabCustomize: 'Personalitza', |
| 260 | + chartsCloseButton: 'Tanca la configuració de gràfics', |
| 261 | + chartsSyncButtonLabel: 'Sincronitza gràfic', |
| 262 | + chartsSearchPlaceholder: 'Camps de cerca', |
| 263 | + chartsSearchLabel: 'Camps de cerca', |
| 264 | + chartsSearchClear: 'Neteja la cerca', |
| 265 | + chartsNoFields: 'Cap camp', |
| 266 | + chartsFieldBlocked: 'Aquest camp no es pot afegir a cap secció', |
| 267 | + chartsCategories: 'Categories', |
| 268 | + chartsSeries: 'Sèries', |
| 269 | + chartsMenuAddToDimensions: (dimensionLabel: string) => `Afegeix a ${dimensionLabel}`, |
| 270 | + chartsMenuAddToValues: (valuesLabel: string) => `Afegeix a ${valuesLabel}`, |
| 271 | + chartsMenuMoveUp: 'Mou amunt', |
| 272 | + chartsMenuMoveDown: 'Mou avall', |
| 273 | + chartsMenuMoveToTop: 'Mou al principi', |
| 274 | + chartsMenuMoveToBottom: 'Mou al final', |
| 275 | + chartsMenuOptions: 'Opcions del camp', |
| 276 | + chartsMenuRemove: 'Elimina', |
| 277 | + chartsDragToDimensions: (dimensionLabel: string) => |
| 278 | + `Arrossega aquí per utilitzar la columna com a ${dimensionLabel}`, |
| 279 | + chartsDragToValues: (valuesLabel: string) => |
| 280 | + `Arrossega aquí per utilitzar la columna com a ${valuesLabel}`, |
| 281 | + |
| 282 | + // AI Assistant panel |
| 283 | + aiAssistantPanelTitle: "Assistent d'IA", |
| 284 | + aiAssistantPanelClose: "Tanca l'assistent d'IA", |
| 285 | + aiAssistantPanelNewConversation: 'Nova conversa', |
| 286 | + aiAssistantPanelConversationHistory: 'Historial de converses', |
| 287 | + aiAssistantPanelEmptyConversation: "L'historial de converses és buit", |
| 288 | + aiAssistantSuggestions: 'Suggeriments', |
| 289 | + |
| 290 | + // Prompt field |
| 291 | + promptFieldLabel: 'Petició', |
| 292 | + promptFieldPlaceholder: 'Escriu una petició…', |
| 293 | + promptFieldPlaceholderWithRecording: 'Escriu o enregistra una petició…', |
| 294 | + promptFieldPlaceholderListening: 'Esperant una petició…', |
| 295 | + promptFieldSpeechRecognitionNotSupported: |
| 296 | + 'El reconeixement de veu no és compatible amb aquest navegador', |
| 297 | + promptFieldSend: 'Envia', |
| 298 | + promptFieldRecord: 'Enregistra', |
| 299 | + promptFieldStopRecording: "Atura l'enregistrament", |
| 300 | + |
| 301 | + // Prompt |
| 302 | + promptRerun: 'Torna a executar', |
| 303 | + promptProcessing: 'Processant…', |
| 304 | + promptAppliedChanges: "S'han aplicat els canvis", |
| 305 | + |
| 306 | + // Prompt changes |
| 307 | + promptChangeGroupDescription: (column: string) => `Agrupa per ${column}`, |
| 308 | + promptChangeAggregationLabel: (column: string, aggregation: string) => |
| 309 | + `${column} (${aggregation})`, |
| 310 | + promptChangeAggregationDescription: (column: string, aggregation: string) => |
| 311 | + `Agrega ${column} (${aggregation})`, |
| 312 | + promptChangeFilterLabel: (column: string, operator: string, value: string) => { |
| 313 | + if (operator === 'is any of') { |
| 314 | + return `${column} és un de: ${value}`; |
| 315 | + } |
| 316 | + return `${column} ${operator} ${value}`; |
| 317 | + }, |
| 318 | + promptChangeFilterDescription: (column: string, operator: string, value: string) => { |
| 319 | + if (operator === 'is any of') { |
| 320 | + return `Filtra per ${column} quan sigui un de: ${value}`; |
| 321 | + } |
| 322 | + return `Filtra per ${column} ${operator} ${value}`; |
| 323 | + }, |
| 324 | + promptChangeSortDescription: (column: string, direction: string) => |
| 325 | + `Ordena per ${column} (${direction})`, |
| 326 | + promptChangePivotEnableLabel: 'Taula dinàmica', |
| 327 | + promptChangePivotEnableDescription: 'Activa la taula dinàmica', |
| 328 | + promptChangePivotColumnsLabel: (count: number) => `Columnes (${count})`, |
| 329 | + promptChangePivotColumnsDescription: (column: string, direction: string) => |
| 330 | + `${column}${direction ? ` (${direction})` : ''}`, |
| 331 | + promptChangePivotRowsLabel: (count: number) => `Files (${count})`, |
| 332 | + promptChangePivotValuesLabel: (count: number) => `Valors (${count})`, |
| 333 | + promptChangePivotValuesDescription: (column: string, aggregation: string) => |
| 334 | + `${column} (${aggregation})`, |
| 335 | + promptChangeChartsLabel: (dimensionsCount: number, valuesCount: number) => |
| 336 | + `Dimensions (${dimensionsCount}), Valors (${valuesCount})`, |
| 337 | +}; |
| 338 | + |
| 339 | +export const caES: Localization = getGridLocalization(caESGrid); |
0 commit comments