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

Translate "Cancel" and "Done button using Locale #454

Open
arioul89 opened this issue Mar 2, 2024 · 1 comment
Open

Translate "Cancel" and "Done button using Locale #454

arioul89 opened this issue Mar 2, 2024 · 1 comment

Comments

@arioul89
Copy link

arioul89 commented Mar 2, 2024

Hi,

Despite of having date using French locale, "Cancel" and "Done" button are still in English :

image

Is there any possibility to translate these button manually ?

Regards

@aqwert
Copy link
Collaborator

aqwert commented Mar 7, 2024

The labels will not translate automatically. You will need to set these yourself using CupertinoDatePickerData

await showPlatformDatePicker(
    context: context,
    ...
    cupertino: (context, platform) => CupertinoDatePickerData(
      cancelLabel: '...',
      doneLabel: '...',
    ),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants