Automattic\WooCommerce\Internal\Admin
Translations::potentially_load_translation_script_file()
Loads the required translation scripts on the correct pages.
Method of the class: Translations{}
No Hooks.
Return
null
. Nothing (null).
Usage
$Translations = new Translations(); $Translations->potentially_load_translation_script_file();
Translations::potentially_load_translation_script_file() Translations::potentially load translation script file code WC 9.8.1
public function potentially_load_translation_script_file() { if ( ! PageController::is_admin_or_embed_page() ) { return; } // Grab translation strings from Webpack-generated chunks. add_filter( 'load_script_translation_file', array( $this, 'load_script_translation_file' ), 10, 3 ); }