File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -394,12 +394,12 @@ public function print_script_module_translations(): void {
394394 }
395395
396396 $ output = <<<JS
397- ( ( domain, translations ) => {
398- const localeData = translations.locale_data[ domain ] || translations.locale_data.messages;
399- localeData[""].domain = domain;
400- wp.i18n.setLocaleData( localeData, domain );
401- } )( " {$ domain }", {$ json_translations } );
402- JS ;
397+ ( ( domain, translations ) => {
398+ const localeData = translations.locale_data[ domain ] || translations.locale_data.messages;
399+ localeData[""].domain = domain;
400+ wp.i18n.setLocaleData( localeData, domain );
401+ } )( " {$ domain }", {$ json_translations } );
402+ JS ;
403403
404404 $ source_url = rawurlencode ( "{$ id }-js-module-translations " );
405405 $ output .= "\n//# sourceURL= {$ source_url }" ;
You can’t perform that action at this time.
0 commit comments