Wrapper for $wp_scripts->localize().
(string) $handle The script handle that was registered or used in script-loader
(string) $object_name Name for the created JS object. This is passed directly so it should be qualified JS variable /[a-zA-Z0-9_]+/
(array) $l10n Associative PHP array containing the translated strings. HTML entities will be converted and the array will be JSON encoded.
(bool) Whether the localization was added successfully.
Wordpress Reference URL: