vinceglb / FileKit

Pick and save Files, Medias and Folder for Kotlin Multiplatform / KMP and Compose Multiplatform / CMP
https://vinceglb.github.io/FileKit/
MIT License
249 stars 8 forks source link

Not localized on macOS (JVM) #42

Open StefanOltmann opened 2 weeks ago

StefanOltmann commented 2 weeks ago

Thanks for making this lib! I like its API very much.

I noticed that on macOS (JVM) the FilePicker as well as the DirectoryPicker are not localized. They are always presented in English. On Windows the pickers are presented in the systems default language.

This is the same problem I currently encounter with compose-multiplatform-file-picker.

vinceglb commented 3 days ago

Thank you @StefanOltmann!

I was able to localize the picker by modifying the Info.plist of the project and adding the "Localizations" key and the different languages I wanted to support in the app:

CleanShot 2024-07-06 at 15 15 09

After that, the picker is automatically localized if the language is supported in the Info.plist:

CleanShot 2024-07-06 at 15 16 58

If you don't have access to the Info.plist because you're using Compose Multiplatform, you can use this documentation to modify the Info.plist like you want.

Does this solve your issue?

StefanOltmann commented 1 day ago

Thank you. I will look into that next week. :)