Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DataGrid] Add Turkish (trTR) locale #1526

Merged
merged 3 commits into from Apr 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -61,6 +61,7 @@ The same import works with `XGrid` as it's an extension of `DataGrid`.
| Portuguese (Brazil) | pt-BR | `ptBR` |
| Russian | ru-RU | `ruRU` |
| Spanish (Spain) | es-ES | `esES` |
| Turkish | tr-TR | `trTR` |
| Ukraine | uk-UA | `ukUA` |

You can [find the source](https://github.com/mui-org/material-ui-x/blob/HEAD/packages/grid/_modules_/grid/locales) in the GitHub repository.
Expand Down
1 change: 1 addition & 0 deletions packages/grid/_modules_/grid/locales/index.ts
Expand Up @@ -11,4 +11,5 @@ export * from './nlNL';
export * from './plPL';
export * from './ptBR';
export * from './ruRU';
export * from './trTR';
export * from './ukUA';
89 changes: 89 additions & 0 deletions packages/grid/_modules_/grid/locales/trTR.ts
@@ -0,0 +1,89 @@
import { trTR as trTRCore } from '@material-ui/core/locale';
import { GridLocaleText } from '../models/api/gridLocaleTextApi';
import { getGridLocalization, Localization } from '../utils';

const trTRGrid: Partial<GridLocaleText> = {
// Root
rootGridLabel: 'grid',
noRowsLabel: 'Satır yok',
errorOverlayDefaultLabel: 'Bir hata oluştu.',

// Density selector toolbar button text
toolbarDensity: 'Sıkılık',
toolbarDensityLabel: 'Sıkılık',
toolbarDensityCompact: 'Sıkı',
toolbarDensityStandard: 'Standart',
toolbarDensityComfortable: 'Rahat',

// Columns selector toolbar button text
toolbarColumns: 'Sütunlar',
toolbarColumnsLabel: 'Sütun seç',

// Filters toolbar button text
toolbarFilters: 'Filtreler',
toolbarFiltersLabel: 'Filtreleri göster',
toolbarFiltersTooltipHide: 'Filtreleri Gizle',
toolbarFiltersTooltipShow: 'Filtreleri göster',
toolbarFiltersTooltipActive: (count) =>
count > 1 ? `${count} aktif filtre` : `${count} aktif filtre`,

// Export selector toolbar button text
toolbarExport: 'Dışa aktar',
toolbarExportLabel: 'Dışa aktar',
toolbarExportCSV: 'CSV olarak aktar',

// Columns panel text
columnsPanelTextFieldLabel: 'Sütun ara',
columnsPanelTextFieldPlaceholder: 'Sütun adı',
columnsPanelDragIconLabel: 'Sütunları yeniden sırala',
columnsPanelShowAllButton: 'Hepsini göster',
columnsPanelHideAllButton: 'Hepsini gizle',

// Filter panel text
filterPanelAddFilter: 'Filtre Ekle',
filterPanelDeleteIconLabel: 'Kaldır',
filterPanelOperators: 'Operatör',
filterPanelOperatorAnd: 'Ve',
filterPanelOperatorOr: 'Veya',
filterPanelColumns: 'Sütunlar',
filterPanelInputLabel: 'Değer',
filterPanelInputPlaceholder: 'Filtre değeri',

// Filter operators text
filterOperatorContains: 'içerir',
filterOperatorEquals: 'eşittir',
filterOperatorStartsWith: 'ile başlar',
filterOperatorEndsWith: 'ile biter',
filterOperatorIs: 'eşittir',
filterOperatorNot: 'eşit değildir',
filterOperatorAfter: 'büyük',
filterOperatorOnOrAfter: 'büyük eşit',
filterOperatorBefore: 'küçük',
filterOperatorOnOrBefore: 'küçük eşit',

// Column menu text
columnMenuLabel: 'Menü',
columnMenuShowColumns: 'Sütunları göster',
columnMenuFilter: 'Filtre uygula',
columnMenuHideColumn: 'Gizle',
columnMenuUnsort: 'Sıralama',
columnMenuSortAsc: 'Sırala - Artan',
columnMenuSortDesc: 'Sırala - Azalan',

// Column header text
columnHeaderFiltersTooltipActive: (count) =>
count > 1 ? `${count} filtre aktif` : `${count} filtre aktif`,
columnHeaderFiltersLabel: 'Filtreleri göster',
columnHeaderSortIconLabel: 'Sırala',

// Rows selected footer text
footerRowSelected: (count) =>
count > 1
? `${count.toLocaleString()} satır seçildi`
: `${count.toLocaleString()} satır seçildi`,

// Total rows footer text
footerTotalRows: 'Toplam Satır:',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

};

export const trTR: Localization = getGridLocalization(trTRGrid, trTRCore);