love.system.getPreferredLocales
Available since LÖVE 12.0 |
This function is not supported in earlier versions. |
Gets preferred locales in order of user's preference.
Function
Synopsis
locales = love.system.getPreferredLocales( )
Arguments
None.
Returns
table locales
- A sequence of strings in order of user's preference. Locales are in form
xx_YY
(or justxx
when country is not available) wherexx
is an ISO-639 language specifier andYY
is an ISO-3166 country code
Notes
It is recommended to load preferred locales only once and if you want to listen to any changes (in case user changes system settings), use love.localechanged.
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info