translations_api


translations_api ( $type, $args = null )

Parameters:
  • (string) type Type of translations. Accepts 'plugins', 'themes', 'core'.
  • (array|object) args Translation API arguments. Optional.
Returns:
  • (array|WP_Error) { On success an associative array of translations, WP_Error on failure. @type array $translations { List of translations, each an array of data. @type array ...$0 { @type string $language Language code. @type string $version WordPress version. @type string $updated Date the translation was last updated, in MySQL datetime format. @type string $english_name English name of the language. @type string $native_name Native name of the language. @type string $package URL to download the translation package. @type string[] $iso Array of ISO language codes. @type array $strings Array of translated strings used in the installation process. } } }
Defined at:

Description

Retrieve translations from WordPress Translation API.

Related Functions

has_translation, get_translations_for_domain, wp_load_translations_early, list_translation_updates, translate

Top Google Results

User discussions

wpseek mobile