Difference between revisions of "FBInstant.getLocale"
From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight") |
|||
Line 9: | Line 9: | ||
The locale string returned is a five-character Facebook locale code of the form xx_XX. | The locale string returned is a five-character Facebook locale code of the form xx_XX. | ||
<br /></translate> | <br /></translate> | ||
− | < | + | <syntaxhighlight lang="lua"> |
(string) = FBInstant.getLocale() | (string) = FBInstant.getLocale() | ||
</source> | </source> |
Revision as of 14:26, 13 July 2023
Available since: Gideros 2018.3
Class: * Initialisation and Core
Description
The current locale. See https://www.facebook.com/translations/FacebookLocales.xml for a complete list of supported locale values. Use this to determine what language the current game should be localized with.
The locale string returned is a five-character Facebook locale code of the form xx_XX.
<syntaxhighlight lang="lua">
(string) = FBInstant.getLocale()
</source>
Return values
Returns (string) The current locale.
- FBInstant.canCreateShortcutAsync
- FBInstant.checkCanPlayerMatchAsync
- FBInstant.createShortcutAsync
- FBInstant.getEntryPointAsync
- FBInstant.getEntryPointData
- FBInstant.getInterstitialAdAsync
- FBInstant.getLeaderboardAsync
- FBInstant.getLocale
- FBInstant.getPlatform
- FBInstant.getRewardedVideoAsync
- FBInstant.getSDKVersion
- FBInstant.getSupportedAPIs
- FBInstant.logEvent
- FBInstant.matchPlayerAsync
- FBInstant.onPause
- FBInstant.quit
- FBInstant.setLoadingProgress
- FBInstant.setSessionData
- FBInstant.shareAsync
- FBInstant.startGameAsync
- FBInstant.switchGameAsync
- FBInstant.updateAsync