You appear to be a bot. Output may be restricted
Description
Localizes the given script with the JavaScript translations.
Usage
$void = WPSEO_Admin_Asset_Yoast_Components_L10n::localize_script( $script_handle );
Parameters
- $script_handle
- ( string ) required – The script handle to localize for.
Returns
void
Source
File name: wordpress-seo/admin/class-admin-asset-yoast-components-l10n.php
Lines:
1 to 10 of 10
public function localize_script( $script_handle ) { _deprecated_function( __FUNCTION__, '18.0' ); $translations = [ 'yoast-components' => $this->get_translations( 'yoast-components' ), 'wordpress-seo' => $this->get_translations( 'wordpress-seojs' ), 'yoast-schema-blocks' => $this->get_translations( 'yoast-schema-blocks' ), ]; $this->asset_manager->localize_script( $script_handle, 'wpseoYoastJSL10n', $translations ); }