Skip to content

Instantly share code, notes, and snippets.

@rxaviers
Created October 29, 2013 12:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rxaviers/7213556 to your computer and use it in GitHub Desktop.
Save rxaviers/7213556 to your computer and use it in GitHub Desktop.
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:
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");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment