Created
May 29, 2019 12:31
-
-
Save theodesp/6c3cc99ac2ca6a80811f23c8d75f0aa7 to your computer and use it in GitHub Desktop.
This file contains 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
(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