Skip to content

Commit 994eaf8

Browse files
committed
fix conditional translation
1 parent de5aefe commit 994eaf8

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

projects/packages/forms/src/dashboard/hooks/use-install-akismet.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,14 @@ export const useInstallAkismet = () => {
8080
await installAndActivatePlugin( 'akismet' );
8181
}
8282

83+
const activatedMessage = __( 'Akismet activated.', 'jetpack-forms' );
84+
const installedAndActivatedMessage = __(
85+
'Akismet installed and activated.',
86+
'jetpack-forms'
87+
);
88+
8389
createSuccessNotice(
84-
akismetIntegration?.isInstalled
85-
? __( 'Akismet activated.', 'jetpack-forms' )
86-
: __( 'Akismet installed and activated.', 'jetpack-forms' ),
90+
akismetIntegration?.isInstalled ? activatedMessage : installedAndActivatedMessage,
8791
{ type: 'snackbar', id: 'akismet-install-success' }
8892
);
8993

0 commit comments

Comments
 (0)