Skip to content

Commit

Permalink
Sharing block: make sharing options translatable (#36642)
Browse files Browse the repository at this point in the history
* Sharing block: make sharing options translatable

* Add comments for translators
  • Loading branch information
monsieur-z authored Apr 3, 2024
1 parent 72e68b8 commit 5bfd7a9
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: other

Sharing block: make sharing options translatable
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,13 @@ export const variations = [
},
{
name: 'print',
attributes: { service: 'print', label: 'Print' },
title: 'Print',
attributes: {
service: 'print',
// translators: option to print the content - a verb.
label: __( 'Print', 'jetpack' ),
},
// translators: option to print the content - a verb labelling a button.
title: __( 'Print', 'jetpack' ),
icon: <SocialIcon icon={ 'print' } size={ 24 } />,
},
{
Expand All @@ -29,8 +34,13 @@ export const variations = [
},
{
name: 'mail',
attributes: { service: 'mail', label: 'Mail' },
title: 'Mail',
attributes: {
service: 'mail',
// translators: option to share the content by email - a verb.
label: __( 'Mail', 'jetpack' ),
},
// translators: option to share the content by email - a verb labelling a button.
title: __( 'Mail', 'jetpack' ),
keywords: [ 'email', 'e-mail' ],
icon: <SocialIcon icon={ 'mail' } size={ 24 } />,
},
Expand Down Expand Up @@ -104,8 +114,12 @@ export const variations = [
},
{
name: 'native-share',
attributes: { service: 'share', label: 'Share' },
/* translators: Sharing Button title */
attributes: {
service: 'share',
// translators: option to share the content - a verb.
label: __( 'Share', 'jetpack' ),
},
// translators: option to share the content - a verb labelling a button.
title: __( 'Native Share', 'jetpack' ),
icon: <SocialIcon icon={ 'share' } size={ 24 } />,
//TODO: we can add link in the future to proper documentation
Expand Down

0 comments on commit 5bfd7a9

Please sign in to comment.