Uses
| Uses | Description | 
|---|---|
| wp-includes/class.wp-scripts.php: WP_Scripts::set_translations() | Sets a translation textdomain. | 
Sets translated strings for a script.
Works only if the script has already been added.
(string) (Required) Script handle the textdomain will be attached to.
(string) (Optional) Text domain.
Default value: 'default'
(string) (Optional) The full file path to the directory containing translation files.
Default value: null
(bool) True if the text domain was successfully localized, false otherwise.
File: wp-includes/functions.wp-scripts.php
function wp_set_script_translations( $handle, $domain = 'default', $path = null ) {
	global $wp_scripts;
	if ( ! ( $wp_scripts instanceof WP_Scripts ) ) {
		_wp_scripts_maybe_doing_it_wrong( __FUNCTION__, $handle );
		return false;
	}
	return $wp_scripts->set_translations( $handle, $domain, $path );
}  | Version | Description | 
|---|---|
| 5.1.0 | The $domainparameter was made optional. | 
| 5.0.0 | Introduced. | 
    © 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
    https://developer.wordpress.org/reference/functions/wp_set_script_translations