Phaser API Documentation

  Version: 
getLocale()

Description:

Returns the current locale. See https://origincache.facebook.com/developers/resources/?id=FacebookLocales.xml for a complete list of supported locale values. Use this to determine what languages the current game should be localized with. It is only populated if getLocale is in the list of supported APIs.

Returns:
Description:

The current locale.

Type:
  • string
Examples:
Since: 3.13.0