globalizejs / globalizejs/globalize
loading CLDR in IE issue
- Dominant language
- JavaScript
- Stars
- 4.8k
- Forks
- 585
- PR merge metrics
- No merged PRs in 30d
Description
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.**
Can someone verify?
Thanks
Contributor guide
Assessment
This issue has not been assessed yet.