setting and changing locale in jquery globalize -
i trying understand best practice automatically setting locale , potentially dynamically changing it, when using jquery-globalize library. the requirements getting , running in jquery globalize, or @ least understand them are: include required javascript files load cldr data set locale step #1 out of scope of question; assume prerequisite move forward. step #2 documented plain javascript looking this, in example refer "dynamic" loading: $.when( $.get( "cldr/main/en/ca-gregorian.json" ), $.get( "cldr/supplemental/likelysubtags.json" ), $.get( "cldr/supplemental/timedata.json" ), $.get( "cldr/supplemental/weekdata.json" ) ).then(function() { // normalize $.get results, need json, not request statuses. return [].slice.apply( arguments, [ 0 ] ).map(function( result ) { return result[ 0 ]; }); }).then( globalize.load ).then(function() { // code goes here. }); if understand code properly, uses ch...