From 5618ea7c1ab8ec3c1ee91e26e7527afcf413b315 Mon Sep 17 00:00:00 2001 From: Brittany Feenstra Date: Mon, 8 Jun 2020 13:59:33 -0600 Subject: [PATCH 1/2] use _n not __ for translation of dropdown with numbers --- assets/src/dashboard/components/dropdown/index.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/assets/src/dashboard/components/dropdown/index.js b/assets/src/dashboard/components/dropdown/index.js index 691a0b68863d..ecdf113cf182 100644 --- a/assets/src/dashboard/components/dropdown/index.js +++ b/assets/src/dashboard/components/dropdown/index.js @@ -17,7 +17,7 @@ /** * WordPress dependencies */ -import { __, sprintf } from '@wordpress/i18n'; +import { _n, sprintf } from '@wordpress/i18n'; /** * External dependencies @@ -244,7 +244,12 @@ const Dropdown = ({ {selectedItems.length > 1 && sprintf( /* translators: %s: number selected */ - __(' + %s', 'web-stories'), + _n( + ' + %s', + ' + %s', + (selectedItems.length - 1).toString(10), + 'web-stories' + ), (selectedItems.length - 1).toString(10) )} From db30d7e1dd6cdd5d7f984208548e451e3e1ad121 Mon Sep 17 00:00:00 2001 From: Brittany Feenstra Date: Mon, 8 Jun 2020 14:06:33 -0600 Subject: [PATCH 2/2] move uppercase to css for detail nav button --- assets/src/dashboard/components/templateNavBar/index.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/assets/src/dashboard/components/templateNavBar/index.js b/assets/src/dashboard/components/templateNavBar/index.js index 25694261478b..141c58e99261 100644 --- a/assets/src/dashboard/components/templateNavBar/index.js +++ b/assets/src/dashboard/components/templateNavBar/index.js @@ -75,6 +75,9 @@ const CloseLink = styled.a` color: ${theme.colors.gray700}; `} `; +const CapitalizedButton = styled(Button)` + text-transform: uppercase; +`; export function TemplateNavBar({ handleCta }) { return ( @@ -84,9 +87,9 @@ export function TemplateNavBar({ handleCta }) { - + + {__('use template', 'web-stories')} + );