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 1 commit
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
6 changes: 3 additions & 3 deletions docs/data/data-grid/localization/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,9 @@
"languageTag": "ro-RO",
"importName": "roRO",
"localeName": "Romanian",
"missingKeysCount": 9,
"totalKeysCount": 123,
"githubLink": "https://github.com/mui/mui-x/blob/v7.x/packages/x-data-grid/src/locales/roRO.ts"
"missingKeysCount": 0,
"totalKeysCount": 132,
"githubLink": "https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/locales/roRO.ts"
LukasTy marked this conversation as resolved.
Show resolved Hide resolved
},
{
"languageTag": "ru-RU",
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
30 changes: 21 additions & 9 deletions packages/x-data-grid/src/locales/roRO.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,18 @@ const roROGrid: Partial<GridLocaleText> = {
toolbarQuickFilterLabel: 'Căutare',
toolbarQuickFilterDeleteIconLabel: 'Ștergere',

// Prompt toolbar field
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.',

LukasTy marked this conversation as resolved.
Show resolved Hide resolved
// Export selector toolbar button text
toolbarExport: 'Export',
toolbarExportLabel: 'Export',
Expand All @@ -39,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 @@ -59,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 @@ -82,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<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);