Skip to content

Internationalization: Fix loading JSON files#2949

Merged
compulim merged 6 commits intomicrosoft:masterfrom
compulim:fix-2946
Feb 27, 2020
Merged

Internationalization: Fix loading JSON files#2949
compulim merged 6 commits intomicrosoft:masterfrom
compulim:fix-2946

Conversation

@compulim
Copy link
Copy Markdown
Contributor

@compulim compulim commented Feb 26, 2020

Fixes #2946.

Changelog Entry

Description

Localization team use different JSON file names than Unicode standard. And we missed cleaning up, and got a bad naming.

Specific Changes

Added tests to make sure the language code match the content of JSON files.

Localization team use different JSON file names than Unicode standard:

  • sr-Cyrl-CS.json for sr-Cyrl
  • sr-Latn-CS.json for sr-Latn
  • zh-CN for zh-Hans
  • zh-HK for zh-Hant-HK
  • zh-TW for zh-Hant

Also, we have naming bugs:

  • sl-SL should be sl-SI

And we have a bogus file:

  • he-IL.js should be removed, use he-IL.json instead

The following language should default to RTL:

  • ar-SA

  • Testing Added

@compulim
Copy link
Copy Markdown
Contributor Author

@corinagum can you verify if ar-SA should be default to RTL?

Comment thread docs/LOCALIZATION.md Outdated
Copy link
Copy Markdown
Contributor

@corinagum corinagum left a comment

Choose a reason for hiding this comment

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

Approved pending 1 fix

@compulim compulim merged commit 3eb19da into microsoft:master Feb 27, 2020
@compulim compulim deleted the fix-2946 branch February 27, 2020 22:10
@compulim compulim mentioned this pull request Mar 5, 2020
40 tasks
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.

Internationalization: sr-Cyrl.json should be sr-Cyrl-CS.json

2 participants