apply_filters ( 'jetpack_i18n_state', array $data )

Filters the i18n state data for use by Webpack bundles built with `@automattic/i18n-loader-webpack-plugin`.

Source file: jetpack_vendor/automattic/jetpack-assets/src/class-assets.php

View in GitHub

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).


Changelog

Since: Jetpack 1.14.0


Notes

Have a note to contribute?

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s