Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Get device language
Started by horacebury Feb 07 2019 09:41 PM

5 replies to this topic
ios device user language preferences

[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

horacebury

[GLOBAL: userInfoPane.html]
horacebury
  • Corona Geek

  • 3,032 posts
  • Corona SDK

How can I detect the user's selected language on their device?

 

I imagine an entry in system.getInfo() for this SO answer:

 

https://stackoverflow.com/a/4221416/71376



[TOPIC: post.html]
#2

XeduR @Spyric

[GLOBAL: userInfoPane.html]
XeduR @Spyric
  • Contributor

  • 524 posts
  • Corona SDK

  Best Answer

I believe that you want https://docs.coronalabs.com/api/library/system/getPreference.html


  • horacebury likes this

[TOPIC: post.html]
#3

horacebury

[GLOBAL: userInfoPane.html]
horacebury
  • Corona Geek

  • 3,032 posts
  • Corona SDK

I actually looked at that doc page this morning, too.

 

:wacko:

 

I'm going to link this in your other thread...



[TOPIC: post.html]
#4

XeduR @Spyric

[GLOBAL: userInfoPane.html]
XeduR @Spyric
  • Contributor

  • 524 posts
  • Corona SDK

Glad to be of assistance. Sometimes the information doesn't sink in even if you read it once, I know that all to well. :D



[TOPIC: post.html]
#5

desarrollo8

[GLOBAL: userInfoPane.html]
desarrollo8
  • Observer

  • 1 posts
  • Corona SDK

I want to get the default language of the device, but the default language returned by system.getPreference( "locale", "language" )is always english (en). My device is set in "es" (Spanish).



[TOPIC: post.html]
#6

horacebury

[GLOBAL: userInfoPane.html]
horacebury
  • Corona Geek

  • 3,032 posts
  • Corona SDK

@desarrollo8 I think you'd have better luck posting a new thread. This one is marked resolved. Also, make sure you post some code.




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: ios, device, user, language, preferences