gluonhq / attach

GNU General Public License v3.0
48 stars 26 forks source link

Add Support to retrieve Device-Language #373

Open LordTylus opened 11 months ago

LordTylus commented 11 months ago

Per Default, GraalVM sets the Locale of the Machine used for compiling into the executable.

A computer with a French locale for example therefore will create an IPA that returns Locale.FRENCH when querying Locale.getDefault()

For proper internationalization I would like to use the language on the iOS / Android / Windows device of the User as default. Right now I have to have the user select his preferred language. But in about 99% of the cases it will be the same language, the Device already has selected, or English if the users native language is not available.

Can this be added or is this already a thing, I couldnt find?