woocommerce_blocks_get_i18n_data_json( string|false|null $translations, string|false $file, string $handle, string $domain )
Pre-filters script translations for the given file, script handle and text domain.
Description Description
Parameters Parameters
- $translations
-
(Required) JSON-encoded translation data. Default null.
- $file
-
(Required) Path to the translation file to load. False if there isn't one.
- $handle
-
(Required) Name of the script to register a translation domain to.
- $domain
-
(Required) The text domain.
Return Return
(string) JSON translations.
Source Source
File: packages/woocommerce-blocks/woocommerce-gutenberg-products-block.php