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

TimePicker in german #436

Open
juliaoden opened this issue Dec 16, 2024 · 3 comments
Open

TimePicker in german #436

juliaoden opened this issue Dec 16, 2024 · 3 comments
Labels
needs more info Needs more information question Further information is requested

Comments

@juliaoden
Copy link

Hello,

it´s my first react-native project and I am currently trying to get the timepicker working for my project. The app is currently only available in german so I need the timepicker in german.
This is my code:
index.js:
`import {registerRootComponent} from 'expo';
import {de, registerTranslation} from 'react-native-paper-dates';

import Main from './Main';

registerTranslation('de', de);
registerRootComponent(Main);`

The call for the timepicker:
<TimePickerModal locale="de" visible={openTimePicker} onDismiss={() => setOpenTimePicker(false)} onConfirm={() => setOpenTimePicker(false)} hours={reminder.hours} minutes={reminder.minutes} />

With this the text like 'Select time' and the button texts are in english:
Bild_2024-12-16_030809780

I am wondering, if I need to set the labels and button texts manually or if I am missing a configuration.
Thank you for responding in advance!

@juliaoden juliaoden added the question Further information is requested label Dec 16, 2024
@iM-GeeKy
Copy link
Collaborator

If there are labels that need to be updated to correspond with the set language feel free to open a PR.

@iM-GeeKy iM-GeeKy added the needs more info Needs more information label Dec 22, 2024
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.).

@RichardLindhout
Copy link
Member

Please make a PR for this: instructions can be found here :)
https://web-ridge.github.io/react-native-paper-dates/docs/intro#register-translation

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 question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants