Skip to content

Commit

Permalink
[l10n] Improve Romanian (ro-RO) locale (@rares985) (#15751)
Browse files Browse the repository at this point in the history
Signed-off-by: Nora <72460825+noraleonte@users.noreply.github.com>
Signed-off-by: Lukas Tyla <llukas.tyla@gmail.com>
Co-authored-by: Rares <raresmateizer@gmail.com>
Co-authored-by: Kenan Yusuf <kenan.m.yusuf@gmail.com>
Co-authored-by: Nora <72460825+noraleonte@users.noreply.github.com>
Co-authored-by: Lukas Tyla <llukas.tyla@gmail.com>
  • Loading branch information
5 people authored Dec 9, 2024
1 parent c7ddc94 commit 5abd3ea
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 25 deletions.
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);

0 comments on commit 5abd3ea

Please sign in to comment.