Skip to content

Commit b276df7

Browse files
chore: force text-domain loading for js files
1 parent 0cd5184 commit b276df7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

includes/Admin.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -751,6 +751,8 @@ public function enqueue() {
751751
wp_localize_script( 'tiobObd', 'tiobDash', apply_filters( 'neve_dashboard_page_data', $this->get_localization() ) );
752752
wp_enqueue_script( 'tiobObd' );
753753

754+
wp_set_script_translations( 'tiobObd', 'templates-patterns-collection' );
755+
754756
if ( ! empty( $this->google_fonts ) ) {
755757
$font_chunks = array_chunk( $this->google_fonts, absint( count( $this->google_fonts ) / 5 ) );
756758
foreach ( $font_chunks as $index => $fonts_chunk ) {
@@ -787,6 +789,8 @@ public function enqueue() {
787789
}
788790
wp_localize_script( 'tiob', 'tiobDash', apply_filters( 'neve_dashboard_page_data', $tiob_dash ) );
789791
wp_enqueue_script( 'tiob' );
792+
793+
wp_set_script_translations( 'tiob', 'templates-patterns-collection' );
790794
}
791795

792796
/**

0 commit comments

Comments
 (0)