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

Fix Azure locale in embed #1928

Merged
merged 5 commits into from
Apr 25, 2019
Merged

Conversation

compulim
Copy link
Contributor

Azure locale is like en.en-us, or zh-hant.zh-hk.

The first part is language (localization), and the second part is regional format (internationalization).

We should only use the first part and ignore the second part. But this is tricky because 80% of the time, the first part is not in the en-US format. So we need to custom mapping for them.

To be cultural neutral, we prefer zh-HANS instead of zh-CN.

@coveralls
Copy link

Coverage Status

Coverage increased (+2.4%) to 57.896% when pulling ea2a6be on compulim:fix-embed-locale into 7136e6b on Microsoft:master.

@compulim compulim merged commit 8c8e2cc into microsoft:master Apr 25, 2019
@compulim compulim deleted the fix-embed-locale branch April 25, 2019 21:45
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.

None yet

3 participants