Skip to content

Commit

Permalink
[l10n] Improve Romanian (ro-RO) locale (#15745)
Browse files Browse the repository at this point in the history
Signed-off-by: Nora <72460825+noraleonte@users.noreply.github.com>
Co-authored-by: Kenan Yusuf <kenan.m.yusuf@gmail.com>
Co-authored-by: Nora <72460825+noraleonte@users.noreply.github.com>
  • Loading branch information
3 people authored Dec 5, 2024
1 parent 11d640d commit 0e443e9
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 34 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": 18,
"missingKeysCount": 0,
"totalKeysCount": 132,
"githubLink": "https://github.com/mui/mui-x/blob/master/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/master/packages/x-date-pickers/src/locales/roRO.ts"
},
Expand Down
37 changes: 19 additions & 18 deletions packages/x-data-grid/src/locales/roRO.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,16 @@ const roROGrid: Partial<GridLocaleText> = {
toolbarQuickFilterDeleteIconLabel: 'Ștergere',

// Prompt toolbar field
// toolbarPromptControlPlaceholder: 'Type a prompt…',
// toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
// toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
// toolbarPromptControlLabel: 'Prompt input',
// toolbarPromptControlRecordButtonDefaultLabel: 'Record',
// toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
// toolbarPromptControlSendActionLabel: 'Send',
// toolbarPromptControlSendActionAriaLabel: 'Send prompt',
// toolbarPromptControlErrorMessage: 'An error occurred while processing the request. Please try again with a different prompt.',
toolbarPromptControlPlaceholder: 'Scrie un prompt…',
toolbarPromptControlWithRecordingPlaceholder: 'Scrie sau înregistrează un prompt…',
toolbarPromptControlRecordingPlaceholder: 'Ascultare prompt…',
toolbarPromptControlLabel: 'Introducere prompt',
toolbarPromptControlRecordButtonDefaultLabel: 'Înregistrează',
toolbarPromptControlRecordButtonActiveLabel: 'Oprește înregistrare',
toolbarPromptControlSendActionLabel: 'Trimite',
toolbarPromptControlSendActionAriaLabel: 'Trimite prompt',
toolbarPromptControlErrorMessage:
'A apărut o eroare la procesare. Încercați din nou cu un alt prompt.',

// Export selector toolbar button text
toolbarExport: 'Export',
Expand All @@ -50,11 +51,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 @@ -70,9 +71,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 @@ -93,9 +94,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> = {
// 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 @@ -74,24 +74,24 @@ const roROPickers: Partial<PickersLocaleText> = {
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 0e443e9

Please sign in to comment.