Skip to content

Commit

Permalink
Add translation for "Notifications"
Browse files Browse the repository at this point in the history
  • Loading branch information
sirreal committed Sep 5, 2024
1 parent 3175138 commit 4f389e8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/experimental/script-modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,5 +223,12 @@ function gutenberg_register_script_modules() {
array(),
$default_version
);
add_filter(
'script_module_data_@wordpress/a11y',
function ( $data ) {
$data['i18n'] = array( 'Notifications' => __( 'Notifications', 'gutenberg' ) );
return $data;
}
);
}
add_action( 'init', 'gutenberg_register_script_modules' );

0 comments on commit 4f389e8

Please sign in to comment.