use the script below to load CLDR:
$.when(
$.get('/Scripts/cldr/main/fr/ca-gregorian.json', function( data ) {
console.log(data);
}),
$.get('/Scripts/cldr/main/fr/numbers.json', function( data ) {
console.log(data);
}),
$.get('/Scripts/cldr/main/fr/timeZoneNames.json', function( data ) {
console.log(data);
}),
$.get('/Scripts/cldr/supplemental/likelySubtags.json', function( data ) {
console.log(data);
}),
$.get('/Scripts/cldr/supplemental/numberingSystems.json', function( data ) {
console.log(data);
}),
$.get('/Scripts/cldr/supplemental/timeData.json', function( data ) {
console.log(data);
}),
$.get('/Scripts/cldr/supplemental/weekData.json', function( data ) {
console.log(data);
})
).then(function (e) {
// Normalize $.get results, we only need the JSON, not the request statuses.
return [].slice.apply(arguments, [0]).map(function (result) {
return result[0];
});
}).then(Globalize.load).then(function () {
Globalize.locale('fr');
});
never reach Normalize point. Found that the problem in "ca-gregorian.json" do not loaded.
Tested with this script:
var jsonData = $.ajax({
url: "/Scripts/cldr/main/fr/ca-gregorian.json",
async: false,
cache: false,
dataType: 'json'
}).responseText;
var strings = JSON.parse(jsonData);
I got "Invalid character" in strings variable
This is happening in IE 11, Win 10.
Updated: it is a parse error in IE 11, WIN 10. When $.get('/Scripts/cldr/main/fr/ca-gregorian.json').
French accented characters failed to parse a file.
use the script below to load CLDR: $.when( $.get('/Scripts/cldr/main/fr/ca-gregorian.json', function( data ) { console.log(data); }), $.get('/Scripts/cldr/main/fr/numbers.json', function( data ) { console.log(data); }), $.get('/Scripts/cldr/main/fr/timeZoneNames.json', function( data ) { console.log(data); }), $.get('/Scripts/cldr/supplemental/likelySubtags.json', function( data ) { console.log(data); }), $.get('/Scripts/cldr/supplemental/numberingSystems.json', function( data ) { console.log(data); }), $.get('/Scripts/cldr/supplemental/timeData.json', function( data ) { console.log(data); }), $.get('/Scripts/cldr/supplemental/weekData.json', function( data ) { console.log(data); }) ).then(function (e) { // Normalize $.get results, we only need the JSON, not the request statuses. return [].slice.apply(arguments, [0]).map(function (result) { return result[0]; }); }).then(Globalize.load).then(function () { Globalize.locale('fr'); });
never reach Normalize point. Found that the problem in "ca-gregorian.json" do not loaded. Tested with this script: var jsonData = $.ajax({ url: "/Scripts/cldr/main/fr/ca-gregorian.json", async: false, cache: false, dataType: 'json' }).responseText;
I got "Invalid character" in strings variable This is happening in IE 11, Win 10.
Can someone verify? Thanks