L10n Global Functions

acf_get_locale()

Returns the current locale.

  • @date 16/12/16
  • @since ACF 5.5.0
  • @return string

acf_load_textdomain()

acf_load_textdomain

  • Loads the plugin’s translated strings similar to load_plugin_textdomain() .
  • @date 8/1/19
  • @since ACF 5.7.10
  • @param string $locale The plugin’s current locale.
  • @return void

_acf_apply_language_cache_key()

_acf_apply_language_cache_key

  • Applies the current language to the cache key.
  • @date 23/1/19
  • @since ACF 5.7.11
  • @param string $key The cache key.
  • @return string