Files
2026-08-07 21:39:30 +02:00

337 lines
13 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { getGridLocalization, buildLocaleFormat } from "../utils/getGridLocalization.mjs";
const formatNumber = buildLocaleFormat('sk-SK');
const skSKGrid = {
// Root
noRowsLabel: 'Žiadne záznamy',
noResultsOverlayLabel: 'Nenašli sa žadne výsledky.',
noColumnsOverlayLabel: 'Žiadne stĺpce',
noColumnsOverlayManageColumns: 'Spravovať stĺpce',
// emptyPivotOverlayLabel: 'Add fields to rows, columns, and values to create a pivot table',
// Density selector toolbar button text
toolbarDensity: 'Hustota',
toolbarDensityLabel: 'Hustota',
toolbarDensityCompact: 'Kompaktná',
toolbarDensityStandard: 'Štandartná',
toolbarDensityComfortable: 'Komfortná',
// Undo/redo toolbar button text
toolbarUndo: 'Späť',
toolbarRedo: 'Znova',
// Columns selector toolbar button text
toolbarColumns: 'Stĺpce',
toolbarColumnsLabel: 'Vybrať stĺpce',
// Filters toolbar button text
toolbarFilters: 'Filtre',
toolbarFiltersLabel: 'Zobraziť filtre',
toolbarFiltersTooltipHide: 'Skryť filtre ',
toolbarFiltersTooltipShow: 'Zobraziť filtre',
toolbarFiltersTooltipActive: count => {
let pluralForm = 'aktívnych filtrov';
if (count > 1 && count < 5) {
pluralForm = 'aktívne filtre';
} else if (count === 1) {
pluralForm = 'aktívny filter';
}
return `${count} ${pluralForm}`;
},
// Quick filter toolbar field
toolbarQuickFilterPlaceholder: 'Vyhľadať…',
toolbarQuickFilterLabel: 'Vyhľadať',
toolbarQuickFilterDeleteIconLabel: 'Vymazať',
// Export selector toolbar button text
toolbarExport: 'Export',
toolbarExportLabel: 'Export',
toolbarExportCSV: 'Stiahnuť ako CSV',
toolbarExportPrint: 'Vytlačiť',
toolbarExportExcel: 'Stiahnuť ako Excel',
// Toolbar pivot button
// toolbarPivot: 'Pivot',
// Toolbar charts button
// toolbarCharts: 'Charts',
// Toolbar AI Assistant button
// toolbarAssistant: 'AI Assistant',
// Columns management text
columnsManagementSearchTitle: 'Vyhľadať',
columnsManagementNoColumns: 'Žiadne stĺpce',
columnsManagementShowHideAllText: 'Zobraziť/Skryť všetko',
columnsManagementReset: 'Resetovať',
columnsManagementDeleteIconLabel: 'Vymazať',
// Filter panel text
filterPanelAddFilter: 'Pridať filter',
filterPanelRemoveAll: 'Odstrániť všetky',
filterPanelDeleteIconLabel: 'Odstrániť',
filterPanelLogicOperator: 'Logický operátor',
filterPanelOperator: 'Operátory',
filterPanelOperatorAnd: 'A',
filterPanelOperatorOr: 'Alebo',
filterPanelColumn: 'Stĺpce',
filterPanelInputLabel: 'Hodnota',
filterPanelInputPlaceholder: 'Hodnota filtra',
// Filter operators text
filterOperatorContains: 'obsahuje',
filterOperatorDoesNotContain: 'neobsahuje',
filterOperatorEquals: 'rovná sa',
filterOperatorDoesNotEqual: 'nerovná sa',
filterOperatorStartsWith: 'začína s',
filterOperatorEndsWith: 'končí na',
filterOperatorIs: 'je',
filterOperatorNot: 'nie je',
filterOperatorAfter: 'je po',
filterOperatorOnOrAfter: 'je na alebo po',
filterOperatorBefore: 'je pred',
filterOperatorOnOrBefore: 'je na alebo skôr',
filterOperatorIsEmpty: 'je prázdny',
filterOperatorIsNotEmpty: 'nie je prázdny',
filterOperatorIsAnyOf: 'je jeden z',
'filterOperator=': '=',
'filterOperator!=': '!=',
'filterOperator>': '>',
'filterOperator>=': '>=',
'filterOperator<': '<',
'filterOperator<=': '<=',
// Header filter operators text
headerFilterOperatorContains: 'Obsahuje',
headerFilterOperatorDoesNotContain: 'Neobsahuje',
headerFilterOperatorEquals: 'Rovná sa',
headerFilterOperatorDoesNotEqual: 'Nerovná sa',
headerFilterOperatorStartsWith: 'Začína s',
headerFilterOperatorEndsWith: 'Končí na',
headerFilterOperatorIs: 'Je',
headerFilterOperatorNot: 'Nie je',
headerFilterOperatorAfter: 'Je po',
headerFilterOperatorOnOrAfter: 'Je na alebo po',
headerFilterOperatorBefore: 'Je pred',
headerFilterOperatorOnOrBefore: 'Je na alebo skôr',
headerFilterOperatorIsEmpty: 'Je prázdny',
headerFilterOperatorIsNotEmpty: 'Nie je prázdny',
headerFilterOperatorIsAnyOf: 'Je jeden z',
'headerFilterOperator=': 'Rovná sa',
'headerFilterOperator!=': 'Nerovná sa',
'headerFilterOperator>': 'Väčší ako',
'headerFilterOperator>=': 'Väčší ako alebo rovný',
'headerFilterOperator<': 'Menší ako',
'headerFilterOperator<=': 'Menší ako alebo rovný',
headerFilterClear: 'Zrušiť filter',
// Filter values text
filterValueAny: 'akýkoľvek',
filterValueTrue: 'áno',
filterValueFalse: 'nie',
// Column menu text
columnMenuLabel: 'Menu',
columnMenuAriaLabel: columnName => `Ponuka stĺpca ${columnName}`,
columnMenuShowColumns: 'Zobraziť stĺpce',
columnMenuManageColumns: 'Spravovať stĺpce',
columnMenuFilter: 'Filter',
columnMenuHideColumn: 'Skryť',
columnMenuUnsort: 'Zrušiť filtre',
columnMenuSortAsc: 'Zoradiť vzostupne',
columnMenuSortDesc: 'Zoradiť zostupne',
// columnMenuManagePivot: 'Manage pivot',
// columnMenuManageCharts: 'Manage charts',
// Column header text
columnHeaderFiltersTooltipActive: count => {
let pluralForm = 'aktívnych filtrov';
if (count > 1 && count < 5) {
pluralForm = 'aktívne filtre';
} else if (count === 1) {
pluralForm = 'aktívny filter';
}
return `${count} ${pluralForm}`;
},
columnHeaderFiltersLabel: 'Zobraziť filtre',
columnHeaderSortIconLabel: 'Filtrovať',
// Rows selected footer text
footerRowSelected: count => {
let pluralForm = 'vybraných záznamov';
if (count > 1 && count < 5) {
pluralForm = 'vybrané záznamy';
} else if (count === 1) {
pluralForm = 'vybraný záznam';
}
return `${count} ${pluralForm}`;
},
// Total row amount footer text
footerTotalRows: 'Riadkov spolu:',
// Total visible row amount footer text
footerTotalVisibleRows: (visibleCount, totalCount) => {
const str = totalCount.toString();
const firstDigit = str[0];
const op = ['4', '6', '7'].includes(firstDigit) || firstDigit === '1' && str.length % 3 === 0 ? 'zo' : 'z';
return `${visibleCount.toLocaleString()} ${op} ${totalCount.toLocaleString()}`;
},
// Checkbox selection text
checkboxSelectionHeaderName: 'Výber riadku',
checkboxSelectionSelectAllRows: 'Vybrať všetky riadky',
checkboxSelectionUnselectAllRows: 'Zrušiť výber všetkých riadkov',
checkboxSelectionSelectRow: 'Vyber riadok',
checkboxSelectionUnselectRow: 'Zruš výber riadku',
// Boolean cell text
booleanCellTrueLabel: 'áno',
booleanCellFalseLabel: 'nie',
// Long text cell
longTextCellExpandLabel: 'Rozbaliť',
longTextCellCollapseLabel: 'Zbaliť',
// Actions cell more text
actionsCellMore: 'viac',
// Column pinning text
pinToLeft: 'Pripnúť na ľavo',
pinToRight: 'Pripnúť na pravo',
unpin: 'Odopnúť',
// Tree Data
treeDataGroupingHeaderName: 'Skupina',
treeDataExpand: 'zobraziť potomkov',
treeDataCollapse: 'skryť potomkov',
// Grouping columns
groupingColumnHeaderName: 'Skupina',
groupColumn: name => `Zoskupiť podľa ${name}`,
unGroupColumn: name => `Prestať zoskupovať podľa ${name}`,
// Master/detail
detailPanelToggle: 'Prepnúť detail panelu',
expandDetailPanel: 'Rozbaliť',
collapseDetailPanel: 'Zbaliť',
// Pagination
paginationRowsPerPage: 'Riadkov na stránke:',
paginationDisplayedRows: ({
from,
to,
count,
estimated
}) => {
if (!estimated) {
return `${formatNumber(from)}–${formatNumber(to)} z ${count !== -1 ? formatNumber(count) : `viac ako ${formatNumber(to)}`}`;
}
const estimatedLabel = estimated && estimated > to ? `približne ${formatNumber(estimated)}` : `viac ako ${formatNumber(to)}`;
return `${formatNumber(from)}–${formatNumber(to)} z ${count !== -1 ? formatNumber(count) : estimatedLabel}`;
},
paginationItemAriaLabel: type => {
if (type === 'first') {
return 'Ísť na prvú stránku';
}
if (type === 'last') {
return 'Ísť na poslednú stránku';
}
if (type === 'next') {
return 'Ísť na ďaľšiu stránku';
}
// if (type === 'previous') {
return 'Ísť na predchádzajúcu stránku';
},
// Row reordering text
rowReorderingHeaderName: 'Preusporiadávanie riadkov',
// Aggregation
aggregationMenuItemHeader: 'Agregácia',
// aggregationFunctionLabelNone: 'none',
aggregationFunctionLabelSum: 'suma',
aggregationFunctionLabelAvg: 'priemer',
aggregationFunctionLabelMin: 'min',
aggregationFunctionLabelMax: 'max',
aggregationFunctionLabelSize: 'počet',
// 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: 'There are no charts available',
// chartsChartNotSelected: 'Select a chart type to configure its options',
// chartsTabChart: 'Chart',
// chartsTabFields: 'Fields',
// chartsTabCustomize: 'Customize',
// chartsCloseButton: 'Close charts configuration',
// chartsSyncButtonLabel: 'Sync chart',
// chartsSearchPlaceholder: 'Search fields',
// chartsSearchLabel: 'Search fields',
// chartsSearchClear: 'Clear search',
// chartsNoFields: 'No fields',
// chartsFieldBlocked: 'This field cannot be added to any section',
// chartsCategories: 'Categories',
// chartsSeries: 'Series',
// chartsMenuAddToDimensions: (dimensionLabel: string) => `Add to ${dimensionLabel}`,
// chartsMenuAddToValues: (valuesLabel: string) => `Add to ${valuesLabel}`,
// chartsMenuMoveUp: 'Move up',
// chartsMenuMoveDown: 'Move down',
// chartsMenuMoveToTop: 'Move to top',
// chartsMenuMoveToBottom: 'Move to bottom',
// chartsMenuOptions: 'Field options',
// chartsMenuRemove: 'Remove',
// chartsDragToDimensions: (dimensionLabel: string) => `Drag here to use column as ${dimensionLabel}`,
// chartsDragToValues: (valuesLabel: string) => `Drag here to use column as ${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: 'Vstup požiadavky',
promptFieldPlaceholder: 'Zadajte požiadavku…',
promptFieldPlaceholderWithRecording: 'Zadajte alebo nahrajte požiadavku…',
promptFieldPlaceholderListening: 'Počúvam požiadavku…',
// promptFieldSpeechRecognitionNotSupported: 'Speech recognition is not supported in this browser',
promptFieldSend: 'Odoslať',
promptFieldRecord: 'Nahrávať',
promptFieldStopRecording: 'Zastaviť nahrávanie'
// 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 skSK = getGridLocalization(skSKGrid);