public
Created

If user wants to define its own set of week day names (ie. locale data), he's able to do that with Globalize with something in these lines of:

  • Download Gist
eg.js
JavaScript
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
Globalization.load({
"main": {
"my-en": {
"dates": {
"calendars": {
"gregorian": {
"days": {
"format": {
"abbreviated": {
"sun": "My Sun",
"mon": "My Mon",
"tue": "My Tue",
"wed": "My Wed",
"thu": "My Thu",
"fri": "My Fri",
"sat": "My Sat"
}
}
}
}
}
}
}
}
});
 
Globalization.locale("my-en");

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.