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

Edit language preference as account detail #145

Merged
merged 3 commits into from
May 25, 2021
Merged

Conversation

dhakim87
Copy link
Contributor

Fix #128

Edits to choose, store, retrieve preferred language with account. Isn't hooked up to actually switch language anywhere though

…'t hooked up to actually switch language anywhere though
@@ -538,7 +539,8 @@ def get_create_account():
ACCT_ADDR_STATE_KEY: 'CA',
ACCT_ADDR_POST_CODE_KEY: '',
ACCT_ADDR_COUNTRY_CODE_KEY: 'US'
}
},
ACCT_LANG_KEY: "en-US"
Copy link
Member

Choose a reason for hiding this comment

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

Can (should?) this be pulled from get_locale?

@@ -540,7 +543,7 @@ def get_create_account():
ACCT_ADDR_POST_CODE_KEY: '',
ACCT_ADDR_COUNTRY_CODE_KEY: 'US'
},
ACCT_LANG_KEY: "en-US"
ACCT_LANG_KEY: browser_lang
Copy link
Member

Choose a reason for hiding this comment

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

ACCT_LANG_KEY: browser_lang()

@wasade wasade merged commit a83ab0c into i18n May 25, 2021
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