Created
October 29, 2013 12:13
-
-
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:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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