From 839e900604b0fe305e9fe9c131aa41e8fa7f814e Mon Sep 17 00:00:00 2001 From: Daniel Leroux Date: Mon, 25 Mar 2019 08:13:37 -0400 Subject: [PATCH] adding cancel translation --- UNRELEASED.md | 1 + .../ResourceList/components/BulkActions/BulkActions.tsx | 2 +- src/locales/en.json | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/UNRELEASED.md b/UNRELEASED.md index 360a4808df1..ba9611e6348 100644 --- a/UNRELEASED.md +++ b/UNRELEASED.md @@ -18,6 +18,7 @@ Use [the changelog guidelines](https://git.io/polaris-changelog-guidelines) to f - Fixed disabled states while loading for `ResourceList` ([#1237](https://github.com/Shopify/polaris-react/pull/1237)) - Fixed `Checkbox` from losing focus and not receiving some modified events([#1112](https://github.com/Shopify/polaris-react/pull/1112)) +- Added translation for the cancel button on the `ResourceList` `BulkActions` ([#1243](https://github.com/Shopify/polaris-react/pull/1243)) ### Documentation diff --git a/src/components/ResourceList/components/BulkActions/BulkActions.tsx b/src/components/ResourceList/components/BulkActions/BulkActions.tsx index 27a8b19c574..14b8e2842f2 100644 --- a/src/components/ResourceList/components/BulkActions/BulkActions.tsx +++ b/src/components/ResourceList/components/BulkActions/BulkActions.tsx @@ -249,7 +249,7 @@ export class BulkActions extends React.PureComponent { testID="btn-cancel" disabled={disabled} > - Cancel + {intl.translate('Polaris.Common.cancel')} ); diff --git a/src/locales/en.json b/src/locales/en.json index 643847fbf28..70da494f3b3 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -30,7 +30,8 @@ "Common": { "checkbox": "checkbox", - "undo": "Undo" + "undo": "Undo", + "cancel": "Cancel" }, "ContextualSaveBar": {