Skip to content

set dialog language #1242

@mrudigier

Description

@mrudigier

Hi,

I am using the file_picker on macos (Monterey 12.5) with the system language/locale set to german.
Im using the following code to chose an image file:

FilePickerResult? result = await FilePicker.platform.pickFiles(
      allowMultiple: false,
      lockParentWindow: true,
      type: FileType.custom,
      allowedExtensions: AllowedAttachmentFileTypes.allowedFileExtension(),
    );

When the file picker window opens, the language of the dialog is a mix of german and english, e.g. it says "Cancel" on the cancel button, but "Auswählen" on the confirmation button.

I don't see a direct way to set the language for the file picker. Is it possible to allow this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    desktopThe issue applies to Windows, Linux or MacOS implementations.suggestionNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions