Skip to content

Commit

Permalink
fix: fix i18n string interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
edoardo committed Aug 18, 2021
1 parent 919a287 commit 752b641
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/widgets/src/SharingDialog/SharingDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,9 @@ export const SharingDialog = ({
return (
<Modal large position="top" onClose={onClose}>
<ModalTitle>
{i18n.t('Sharing & Access') +
(sharingSettings.name ? `: ${sharingSettings.name}` : '')}
{sharingSettings.name
? i18n.t('Sharing & Access: {{name}}', sharingSettings)
: i18n.t('Sharing & Access')}
</ModalTitle>
<ModalContent>
<ShareBlock onAdd={onAdd} />
Expand Down

0 comments on commit 752b641

Please sign in to comment.