Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jmaver-plume
Copy link
Contributor

Resolves #5555
Impact: major
Type: feature

Issue

Previous pull request, which was closed due to significant changes in reaction in this timeframe and different forked repository.

Multilingual emails by shop are not supported, because email language will always be that of shop.language. All users will receive email in same language.

Solution

Added fields profile.language to Accounts collection and ordererPreferredLanguage to order collection.
Updated graphql queries and mutations to allow for optional language.
This way storefront can supply language and we support multilingual emails.

Breaking changes

No breaking changes.

Testing

Tests are not implemented, but code is tested locally.

Account Profile Language

  1. Run graphql mutation setAccountProfileLanguage.

Order language

  1. Create order either with or without orderPreferredLanguage field.

Account Emails

  1. Set profile language for user.
  2. Do an activity which sends email with that user such as reset password, create order etc.

Copy link
Contributor

@aldeed aldeed left a comment

Choose a reason for hiding this comment

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

@jm18457 Overall this looks good, but a few comments to fix. You'll also need to merge in latest develop. @kieckhafer has been converting some of the email stuff to non-Meteor, so there may be some adjustments to make. Bad timing, sorry, but I'd like to get this one merged.

@jmaver-plume
Copy link
Contributor Author

jmaver-plume commented Sep 23, 2019

I have misread your comment and rebased, instead of merging develop branch.
I have made changes as requested.

@aldeed aldeed merged commit b5b6046 into reactioncommerce:develop Sep 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants