Skip to content

Commit

Permalink
FIx missing translations in scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
enricobattocchi committed Mar 14, 2024
1 parent ea2445f commit c44d4e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ui/asset-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ public function enqueue_edit_script( $data_object = [] ) {
'duplicatePost',
$data_object
);
\wp_set_script_translations( $handle, 'duplicate-post', \DUPLICATE_POST_PATH . '/languages' );
}

/**
Expand All @@ -133,6 +134,7 @@ public function enqueue_strings_script( $data_object = [] ) {
'duplicatePostStrings',
$data_object
);
\wp_set_script_translations( $handle, 'duplicate-post', \DUPLICATE_POST_PATH . '/languages' );
}

/**
Expand Down

0 comments on commit c44d4e0

Please sign in to comment.