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

CLDR webpack loader and plugin #243

Merged
merged 13 commits into from
Feb 11, 2020
Merged

CLDR webpack loader and plugin #243

merged 13 commits into from
Feb 11, 2020

Conversation

agubler
Copy link
Member

@agubler agubler commented Jan 27, 2020

Type: feature

The following has been addressed in the PR:

Description:

Adds a loader and plugin that together enable Dojo application's to automatically detect required CLDR data based on a set of locales. The Plugin detects if any of the dojo framework i18n formatter modules are used in the application and creates appropriate CLDR bundles for all supported locales. The loader generates the CLDR data loaders that are set on the applications i18n API so that they can be used to lazily load the CLDR data on request.

For sync mode (i.e. single-bundle), all the i18n CLDR data is included in the main bundle.

Related to dojo/framework#655

Note: requires release of dojo/framework

@agubler agubler requested a review from mwistrand January 27, 2020 14:37
@codecov
Copy link

codecov bot commented Jan 27, 2020

Codecov Report

Merging #243 into master will increase coverage by <.01%.
The diff coverage is 95.77%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #243      +/-   ##
==========================================
+ Coverage   84.25%   84.26%   +<.01%     
==========================================
  Files          46       48       +2     
  Lines        2096     2186      +90     
  Branches      564      579      +15     
==========================================
+ Hits         1766     1842      +76     
- Misses        330      344      +14
Impacted Files Coverage Δ
src/bootstrap-plugin/async.js 0% <0%> (ø) ⬆️
src/bootstrap-plugin/sync.js 0% <0%> (ø) ⬆️
src/cldr/Plugin.ts 100% <100%> (ø)
src/cldr/loader.ts 100% <100%> (ø)
src/electron-plugin/ElectronPlugin.ts 0% <0%> (ø) ⬆️
src/build-time-render/BuildTimeRender.ts 95.08% <0%> (+0.54%) ⬆️
src/css-module-dts-loader/loader.ts 100% <0%> (+1.42%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update de3d9f9...b7a595f. Read the comment docs.

@agubler agubler merged commit 38c777f into dojo:master Feb 11, 2020
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