Localization with Unicode CLDR and overrideable strings#2894
Merged
compulim merged 53 commits intomicrosoft:masterfrom Feb 19, 2020
Merged
Localization with Unicode CLDR and overrideable strings#2894compulim merged 53 commits intomicrosoft:masterfrom
compulim merged 53 commits intomicrosoft:masterfrom
Conversation
d820074 to
33ea5f5
Compare
Contributor
|
Playground updates? |
corinagum
reviewed
Feb 14, 2020
corinagum
reviewed
Feb 14, 2020
corinagum
reviewed
Feb 14, 2020
corinagum
reviewed
Feb 14, 2020
corinagum
reviewed
Feb 14, 2020
corinagum
reviewed
Feb 14, 2020
corinagum
reviewed
Feb 14, 2020
corinagum
reviewed
Feb 14, 2020
corinagum
reviewed
Feb 14, 2020
corinagum
reviewed
Feb 14, 2020
corinagum
reviewed
Feb 14, 2020
corinagum
reviewed
Feb 14, 2020
corinagum
reviewed
Feb 14, 2020
corinagum
reviewed
Feb 14, 2020
corinagum
reviewed
Feb 14, 2020
corinagum
reviewed
Feb 14, 2020
corinagum
reviewed
Feb 14, 2020
corinagum
reviewed
Feb 14, 2020
Co-Authored-By: Corina <[email protected]>
Co-Authored-By: Corina <[email protected]>
Co-Authored-By: Corina <[email protected]>
Co-Authored-By: Corina <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog Entry
Breaking changes
localeprop:zh-YUEhas been renamed toyueto conform with Unicode standard.zh-YUEwill continue to work with warningsoverideLocalizedStringsprop to overrideuseLocalizeanduseLocalizeDateis being deprecated. Please useuseLocalizeranduseLocalizerForDateinsteadAdded
Description
Please see
docs/LOCALIZATION.mdfor details.Specific Changes
useLocalizer,useLocalizerForBytes,useLocalizerForDate, anduseLocalizerForRelativeTimeuseLocalizerwill help reduce code and slightly improve performanceuseLanguagehook to support outputting oral language, which can be different from written (UI) languageuseLocalizeanduseLocalizeDate.jsinto.json, before localization team has their strings readyglobalizefor I18n on date, time, and unitcldr-dataintoPrecompiledGlobalize.js(~140 KB for 44 languages)/lib/folderoverrideableLocalizedStringsprop to allow developers to override our strings<SendFailedRetry>to<InlineMarkdown>To-do
createPrecompiledGlobalize.jsduringnpm run buildLocalize.jsto use latest JSON files*.jsfiles<InlineMarkdown>