Skip to content

Commit

Permalink
feat(customers): CUST-1583 use label for country states to send non-t…
Browse files Browse the repository at this point in the history
…ranslated name on submit
  • Loading branch information
mjhmatt committed Aug 14, 2021
1 parent 6478161 commit 1d3d539
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Draft
- Translation for states select field on account signup page. [#2105](https://github.com/bigcommerce/cornerstone/pull/2105)

## 6.0.0 (08-06-2021)
- Translation mechanism for config.json has been updated. [#2089](https://github.com/bigcommerce/cornerstone/pull/2089)
Expand Down
2 changes: 1 addition & 1 deletion assets/js/theme/common/state-country.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function addOptions(statesArray, $selectElement, options) {
if (options.useIdForStates) {
container.push(`<option value="${stateObj.id}">${stateObj.name}</option>`);
} else {
container.push(`<option value="${stateObj.name}">${stateObj.name}</option>`);
container.push(`<option value="${stateObj.name}">${stateObj.label ? stateObj.label : stateObj.name}</option>`);
}
});

Expand Down

0 comments on commit 1d3d539

Please sign in to comment.