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

[l10n] Improve Romanian (ro-RO) locale (@rares985) #15751

Merged
merged 5 commits into from
Dec 9, 2024
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/data/data-grid/localization/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@
"languageTag": "ro-RO",
"importName": "roRO",
"localeName": "Romanian",
"missingKeysCount": 9,
"missingKeysCount": 0,
"totalKeysCount": 123,
"githubLink": "https://github.com/mui/mui-x/blob/v7.x/packages/x-data-grid/src/locales/roRO.ts"
},
Expand Down
2 changes: 1 addition & 1 deletion docs/data/date-pickers/localization/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@
"languageTag": "ro-RO",
"importName": "roRO",
"localeName": "Romanian",
"missingKeysCount": 14,
"missingKeysCount": 0,
"totalKeysCount": 50,
"githubLink": "https://github.com/mui/mui-x/blob/v7.x/packages/x-date-pickers/src/locales/roRO.ts"
},
Expand Down
18 changes: 9 additions & 9 deletions packages/x-data-grid/src/locales/roRO.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ const roROGrid: Partial<GridLocaleText> = {
toolbarExportExcel: 'Download în format Excel',

// Columns management text
// columnsManagementSearchTitle: 'Search',
// columnsManagementNoColumns: 'No columns',
// columnsManagementShowHideAllText: 'Show/Hide All',
// columnsManagementReset: 'Reset',
// columnsManagementDeleteIconLabel: 'Clear',
columnsManagementSearchTitle: 'Caută',
columnsManagementNoColumns: 'Nicio coloană',
columnsManagementShowHideAllText: 'Arată/Ascunde tot',
columnsManagementReset: 'Resetează',
columnsManagementDeleteIconLabel: 'Șterge',

// Filter panel text
filterPanelAddFilter: 'Adăugare filtru',
Expand All @@ -59,9 +59,9 @@ const roROGrid: Partial<GridLocaleText> = {

// Filter operators text
filterOperatorContains: 'conține',
// filterOperatorDoesNotContain: 'does not contain',
filterOperatorDoesNotContain: 'nu conține',
filterOperatorEquals: 'este egal cu',
// filterOperatorDoesNotEqual: 'does not equal',
filterOperatorDoesNotEqual: 'nu este egal cu',
filterOperatorStartsWith: 'începe cu',
filterOperatorEndsWith: 'se termină cu',
filterOperatorIs: 'este',
Expand All @@ -82,9 +82,9 @@ const roROGrid: Partial<GridLocaleText> = {

// Header filter operators text
headerFilterOperatorContains: 'Conține',
// headerFilterOperatorDoesNotContain: 'Does not contain',
headerFilterOperatorDoesNotContain: 'Nu conține',
headerFilterOperatorEquals: 'Egal cu',
// headerFilterOperatorDoesNotEqual: 'Does not equal',
headerFilterOperatorDoesNotEqual: 'Nu este egal cu',
headerFilterOperatorStartsWith: 'Începe cu',
headerFilterOperatorEndsWith: 'Se termină cu',
headerFilterOperatorIs: 'Este',
Expand Down
28 changes: 14 additions & 14 deletions packages/x-date-pickers/src/locales/roRO.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ const roROPickers: Partial<PickersLocaleText<any>> = {
// DateRange labels
start: 'Început',
end: 'Sfârșit',
// startDate: 'Start date',
// startTime: 'Start time',
// endDate: 'End date',
// endTime: 'End time',
startDate: 'Data de început',
startTime: 'Ora de început',
endDate: 'Data de sfârșit',
endTime: 'Ora de sfârșit',

// Action bar
cancelButtonLabel: 'Anulare',
Expand Down Expand Up @@ -78,24 +78,24 @@ const roROPickers: Partial<PickersLocaleText<any>> = {
fieldYearPlaceholder: (params) => 'A'.repeat(params.digitAmount),
fieldMonthPlaceholder: (params) => (params.contentType === 'letter' ? 'LLLL' : 'LL'),
fieldDayPlaceholder: () => 'ZZ',
// fieldWeekDayPlaceholder: params => params.contentType === 'letter' ? 'EEEE' : 'EE',
fieldWeekDayPlaceholder: (params) => (params.contentType === 'letter' ? 'ZZZZ' : 'ZZ'),
fieldHoursPlaceholder: () => 'hh',
fieldMinutesPlaceholder: () => 'mm',
fieldSecondsPlaceholder: () => 'ss',
fieldMeridiemPlaceholder: () => 'aa',

// View names
// year: 'Year',
// month: 'Month',
// day: 'Day',
// weekDay: 'Week day',
// hours: 'Hours',
// minutes: 'Minutes',
// seconds: 'Seconds',
// meridiem: 'Meridiem',
year: 'An',
month: 'Luna',
day: 'Ziua',
weekDay: 'Ziua saptămânii',
hours: 'Ore',
minutes: 'Minute',
seconds: 'Secunde',
meridiem: 'Meridiem',

// Common
// empty: 'Empty',
empty: 'Gol',
};

export const roRO = getPickersLocalization(roROPickers);
Loading