Skip to content

Commit

Permalink
adding cancel translation
Browse files Browse the repository at this point in the history
  • Loading branch information
dleroux committed Mar 25, 2019
1 parent 46b7484 commit 0fae6e4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions UNRELEASED.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ Use [the changelog guidelines](https://git.io/polaris-changelog-guidelines) to f

### Bug fixes

- Added translation for the cancel button on the `ResourceList` `BulkActions` ([#1243](https://github.com/Shopify/polaris-react/pull/1243))

### Documentation

### Development workflow
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ export class BulkActions extends React.PureComponent<CombinedProps, State> {
onClick={this.setSelectMode.bind(this, false)}
testID="btn-cancel"
>
Cancel
{intl.translate('Polaris.Common.cancel')}
</button>
);

Expand Down
3 changes: 2 additions & 1 deletion src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@

"Common": {
"checkbox": "checkbox",
"undo": "Undo"
"undo": "Undo",
"cancel": "Cancel"
},

"ContextualSaveBar": {
Expand Down

0 comments on commit 0fae6e4

Please sign in to comment.