Skip to content

Commit 632c573

Browse files
authored
wpcom-importer: Fix localization (#45686)
* Load the translations for wpcom-imports * changelog
1 parent a4923bd commit 632c573

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: patch
2+
Type: fixed
3+
4+
wpcom-imports: Load the JS translations

projects/packages/jetpack-mu-wpcom/src/features/wpcom-imports/wpcom-imports.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ function wpcom_imports_enqueue_script() {
140140
true
141141
);
142142

143+
wp_set_script_translations( 'wpcom-importer-entry', 'jetpack-mu-wpcom' );
144+
143145
$domain = wp_parse_url( home_url(), PHP_URL_HOST );
144146
$site_id = get_wpcom_blog_id();
145147

0 commit comments

Comments
 (0)