Copy link to clipboard
Copied
I know how to use Capabilites.language(s) to determine the device language, but I wonder; is there is any way to figure out the region of the device? (iOS)
Thanks for any pointers!
JP
Copy link to clipboard
Copied
You might want to try
new StringTools(LocaleID.DEFAULT).actualLocaleIDName
to get the locale. Not sure how much of that is influenced by device language settings as I've seen different behavior on Android and iOS, but I've been using it in projects also.
Copy link to clipboard
Copied
Thanks for the tip!
Find more inspiration, events, and resources on the new Adobe Community
Explore Now