Filters the i18n state data for use by Webpack bundles built with `@automattic/i18n-loader-webpack-plugin`.
Parameters
- $data
array The state data to generate. Expected fields are: – `baseUrl`: (string|false) The URL to the languages directory. False if no URL could be determined. – `locale`: (string) The locale for the page. – `domainMap`: (string[]) A mapping from Composer package textdomains to the corresponding `plugins/textdomain` or `themes/textdomain` (or core `textdomain`, but that's unlikely). – `domainPaths`: (string[]) A mapping from Composer package textdomains to the corresponding package paths.
Changelog
- Introduced in Jetpack 1.14.0