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

Add Spanish Locale to Date Picker #449

Open
brunoharari opened this issue Jan 25, 2025 · 4 comments
Open

Add Spanish Locale to Date Picker #449

brunoharari opened this issue Jan 25, 2025 · 4 comments
Labels
needs more info Needs more information needs repro Needs reproducible example

Comments

@brunoharari
Copy link

brunoharari commented Jan 25, 2025

Here it is the translation for the locale for the DatePicker for Spanish Language

registerTranslation('es', {
save: 'Guardar',
selectSingle: 'Seleccionar fecha',
selectMultiple: 'Seleccionar fechas',
selectRange: 'Seleccionar rango',
notAccordingToDateFormat: (inputFormat) =>
El formato debe ser ${inputFormat},
mustBeHigherThan: (date) => Debe ser posterior a ${date},
mustBeLowerThan: (date) => Debe ser anterior a ${date},
mustBeBetween: (startDate, endDate) =>
Debe estar entre ${startDate} y ${endDate},
dateIsDisabled: 'Fecha no permitida',
previous: 'Anterior',
next: 'Siguiente',
typeInDate: 'Escriba la fecha',
pickDateFromCalendar: 'Seleccione una fecha del calendario',
close: 'Cerrar',
});

Thank you!

@iM-GeeKy iM-GeeKy added needs more info Needs more information needs repro Needs reproducible example labels Jan 26, 2025
Copy link
Contributor

Hey! Thanks for opening the issue. Can you provide more information about the issue? Please fill the issue template when opening the issue without deleting any section. We need all the information we can, to be able to help. Make sure to at least provide - Current behaviour, Expected behaviour, A way to reproduce the issue with minimal code (link to snack.expo.dev) or a repo on GitHub, and the information about your environment (such as the platform of the device, versions of all the packages etc.).

Copy link
Contributor

Hey! Thanks for opening the issue. Can you provide a minimal repro which demonstrates the issue? Posting a snippet of your code in the issue is useful, but it's not usually straightforward to run. A repro will help us debug the issue faster. Please try to keep the repro as small as possible. The easiest way to provide a repro is on snack.expo.dev. If it's not possible to repro it on snack.expo.dev, then you can also provide the repro in a GitHub repository.

@brunoharari brunoharari changed the title Add Spanish Locale to Date Picker & Time Picker Bug Add Spanish Locale to Date Picker Jan 27, 2025
@brunoharari
Copy link
Author

Thanks for the answer, That's the translation of the Spanish language for the DatePicker component.

@RichardLindhout
Copy link
Member

Please make a PR for this so we can easily merge. Happy to merge!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs more info Needs more information needs repro Needs reproducible example
Projects
None yet
Development

No branches or pull requests

3 participants