diff --git a/bin/pot-dist-references.js b/bin/pot-dist-references.js index c07153c8cc..48e03ff53f 100755 --- a/bin/pot-dist-references.js +++ b/bin/pot-dist-references.js @@ -10,6 +10,10 @@ const additionalReferences = [ re: /^#: assets\/setup-wizard\//gm, reference: '#: assets/dist/setup-wizard/index.js:1', }, + { + re: /^#: assets\/data-port\//gm, + reference: '#: assets/dist/data-port/import.js:1', + }, ]; /** diff --git a/includes/data-port/class-sensei-import.php b/includes/data-port/class-sensei-import.php index 93509e55ee..d8c1a78f02 100644 --- a/includes/data-port/class-sensei-import.php +++ b/includes/data-port/class-sensei-import.php @@ -37,6 +37,7 @@ public function __construct() { 'admin_print_scripts', function() { Sensei()->assets->enqueue( 'sensei-import', 'data-port/import.js', [], true ); + wp_set_script_translations( 'sensei-import', 'sensei-lms' ); } );