Skip to content

Instantly share code, notes, and snippets.

@theodesp
Created May 29, 2019 12:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theodesp/6c3cc99ac2ca6a80811f23c8d75f0aa7 to your computer and use it in GitHub Desktop.
Save theodesp/6c3cc99ac2ca6a80811f23c8d75f0aa7 to your computer and use it in GitHub Desktop.
(function($) {
$.when(
$.getJSON( 'js/vendor/cldr/en/ca-gregorian.json' ),
$.getJSON( 'js/vendor/cldr/en/currencies.json' ),
$.getJSON( 'js/vendor/cldr/en/numbers.json' ),
$.getJSON( 'js/vendor/cldr/en/units.json' ),
$.getJSON( 'js/vendor/cldr/supplemental/plurals.json' ),
$.getJSON( 'js/vendor/cldr/supplemental/timeData.json' ),
$.getJSON( 'js/vendor/cldr/supplemental/weekData.json' ),
$.getJSON( 'js/vendor/cldr/supplemental/likelySubtags.json' )
).then(function() {
// Normalize $.get results, we only need the JSON, not the request statuses.
return [].slice.apply( arguments, [ 0 ] ).map(function( result ) {
return result[ 0 ];
});
// eslint-disable-next-line no-undef
}).then( Globalize.load ).then(function() {
});
// eslint-disable-next-line no-undef
}(jQuery));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment