Loader::combine_translation_chunk_files( AutomatticWooCommerceAdminLanguage_Pack_Upgrader $instance, array $hook_extra )

Combine translation chunks when files are updated.


Description Description

This function combines JSON translation data auto-extracted by GlotPress from Webpack-generated JS chunks into a single file that can be used in subsequent requests. This is necessary since the JS chunks are not known to WordPress via wp_register_script() and wp_set_script_translations().


Parameters Parameters

$instance

(Required) Upgrader instance.

$hook_extra

(Required) Info about the upgraded language packs.


Top ↑

Source Source

File: packages/woocommerce-admin/src/Loader.php


			


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.