Filters the Translation Installation API response results.
Parameters
$resarray|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. } } }
$translationsarray
List of translations, each an array of data.
...$0array
@type string $language Language code.
$versionstring
WordPress version.
$updatedstring
Date the translation was last updated, in MySQL datetime format.
$english_namestring
English name of the language.
$native_namestring
Native name of the language.
$packagestring
URL to download the translation package.
$isostring[]
Array of ISO language codes.
$stringsarray
Array of translated strings used in the installation process. }
135*}136*}137*}138* @param string$type The type of translations being requested.139* @param object$args Translation API arguments.140*/141returnapply_filters('translations_api_result',$res,$type,$args);142}143144/**145* Get available translations from the WordPress.org API.146*147* @since 4.0.0
History
Introduced in 4.0.0. Unchanged from 6.7.7 through 7.1.0.