google / flutter-desktop-embedding

Experimental plugins for Flutter for Desktop
Apache License 2.0
7.1k stars 607 forks source link

'file_selector_macos' plugin ignores/overrides the preferred macOs's display language when showing open and save panel #825

Closed asingh1098 closed 3 years ago

asingh1098 commented 3 years ago

The open and save panel's label's text is always in English even when my macOS's preferred(display) language is set to German. _I have tested 'file_selectorwindows' on windows and it works perfectly without showing this bug, however, On macOS, the default language seems to be English instead of German for the open and save panel. Please refer to the attached screenshots to get a better understanding of the above-mentioned bug:-

For Open Panel in macOS: Expected behavior: image

Actual behavior: image

For Save Panel in macOS: Expected behavior: image

Actual behavior: image

stuartmorgan commented 3 years ago

The open panel has no language control; like any other native UI, it will use the language that macOS is running your application in, which is the first one on your ordered list of preferred languages (at the OS level) that your application declares support for. If your native UI is in English when your OS is set to German, then you haven't informed the OS that your application supports German, either via a German lproj, or via CFBundleLocalizations.

I filed https://github.com/flutter/website/issues/7767 to track documenting this in Flutter's docs (as it currently is for iOS) when the macOS release process is documented.