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 778258b commit 0c132f6
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 0c132f6

Please sign in to comment.