Last active
August 29, 2015 14:11
-
-
Save iwatakeshi/1ff6650aa3ee20106d85 to your computer and use it in GitHub Desktop.
A template Javascript locale factory for toki.js
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
// toki.js locale configuration | |
// locale : afrikaans (af) | |
// author : Werner Mollentze : https://github.com/wernerm | |
/*jslint node: true, forin: true, white: true, newcap: true*/ | |
/*jslint browser:true */ | |
/*global define*/ | |
(function(factory) { | |
if (typeof define === 'function' && define.amd) { | |
define(['toki'], factory); // AMD | |
} else if (typeof exports === 'object') { | |
module.exports = factory(require('../toki')); // Node | |
} else { | |
factory((typeof global !== 'undefined' ? global : this).toki); // node or other global | |
} | |
}(function(toki) { | |
return toki.defineLocale('en-us', { | |
month: { | |
long: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'), | |
short: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sept_Oct_Nov_Dec'.split('_'), | |
min: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sept_Oct_Nov_Dec'.split('_') | |
}, | |
weekday: { | |
long: 'Sunday_Monday_Tuesday_Wednsday_Thursday_Friday_Saturday'.split('_'), | |
short: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), | |
min: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_') | |
}, | |
day: { | |
format: '%s' | |
}, | |
year: { | |
format: '%s' | |
} | |
}); | |
})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment