Difference between revisions of "Application:getLocale"

From GiderosMobile
m (Text replacement - "</source" to "</syntaxhighlight")
Line 7: Line 7:
 
<source lang="lua">
 
<source lang="lua">
 
(string) = application:getLocale()
 
(string) = application:getLocale()
</source>
+
</syntaxhighlight>
  
 
=== Return values ===
 
=== Return values ===

Revision as of 16:31, 12 July 2023

Available since: Gideros 2011.6
Class: Application

Description

Returns the device locale. The locale string is a combination of ISO 639-1 and ISO 3166-1. For example, en_US, ja_JP.

<source lang="lua"> (string) = application:getLocale() </syntaxhighlight>

Return values

Returns (string) The device locale