Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EIT-2361 - add ability to set consumer locale #253

Merged
merged 2 commits into from
Jul 4, 2023

Conversation

ScottAntonacAP
Copy link
Collaborator

Summary of Changes

  • Allow the consumer locale to be manually set via a Configuration object. This will fallback to the device locale if not set

Submission Checklist

  • Tests are included.

@ScottAntonacAP ScottAntonacAP added the enhancement New feature or request label Jun 29, 2023
@ScottAntonacAP ScottAntonacAP self-assigned this Jun 29, 2023
Comment on lines +34 to +41
let localeCombinations: [LocaleCombination] = [
LocaleCombination(merchantLocale: enUsLocale, consumerLocale: enUsLocale, valid: true),
LocaleCombination(merchantLocale: enUsLocale, consumerLocale: enAuLocale, valid: true),
LocaleCombination(merchantLocale: enUsLocale, consumerLocale: esUsLocale, valid: false),
LocaleCombination(merchantLocale: enUsLocale, consumerLocale: frCaLocale, valid: false),
LocaleCombination(merchantLocale: enUsLocale, consumerLocale: jpJPLocale, valid: false),

LocaleCombination(merchantLocale: enAuLocale, consumerLocale: enAuLocale, valid: true),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: is there any easy way this matrix could be constructed programatically?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I didn't even see the valid prop at the end 🤦🏻‍♂️ ignore me

@ScottAntonacAP ScottAntonacAP merged commit 525a653 into master Jul 4, 2023
@ScottAntonacAP ScottAntonacAP deleted the feature/set-consumer-locale/EIT-2361 branch July 4, 2023 00:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants