Skip to content

Fix Azure locale in embed#1928

Merged
compulim merged 5 commits intomicrosoft:masterfrom
compulim:fix-embed-locale
Apr 25, 2019
Merged

Fix Azure locale in embed#1928
compulim merged 5 commits intomicrosoft:masterfrom
compulim:fix-embed-locale

Conversation

@compulim
Copy link
Copy Markdown
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
Copy Markdown

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.

3 participants