From d1db6fb3b3fd012db499558fc6f99c2d3f455b86 Mon Sep 17 00:00:00 2001 From: infiinte-persistence Date: Fri, 4 Sep 2020 11:41:37 +0800 Subject: [PATCH] Block Toast untranslated strings --- static/app-strings.json | 1 + ui/component/blockButton/view.jsx | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/static/app-strings.json b/static/app-strings.json index 43945a8e1..5b42d1590 100644 --- a/static/app-strings.json +++ b/static/app-strings.json @@ -451,6 +451,7 @@ "Blocked": "Blocked", "Unblock": "Unblock", "You have blocked this channel content.": "You have blocked this channel content.", + "Blocked %channelUrl%": "Blocked %channelUrl%", "This channel hasn't published anything yet": "This channel hasn't published anything yet", "Network and Data Settings": "Network and Data Settings", "Save all viewed content to your downloads directory": "Save all viewed content to your downloads directory", diff --git a/ui/component/blockButton/view.jsx b/ui/component/blockButton/view.jsx index ec9597446..d4716d0ab 100644 --- a/ui/component/blockButton/view.jsx +++ b/ui/component/blockButton/view.jsx @@ -35,7 +35,11 @@ export default function BlockButton(props: Props) { onClick={e => { e.stopPropagation(); if (!channelIsBlocked) { - doToast({ message: `Blocked ${shortUrl}`, linkText: 'Manage', linkTarget: `/${PAGES.BLOCKED}` }); + doToast({ + message: __('Blocked %channelUrl%', { channelUrl: shortUrl }), + linkText: __('Manage'), + linkTarget: `/${PAGES.BLOCKED}`, + }); } toggleBlockChannel(permanentUrl);