freqdec / datePicker

An attempt at writing a flexible, framework free, feature-rich and accessible datepicker
http://freqdec.github.io/datePicker/
MIT License
171 stars 56 forks source link

Lang file configuration #25

Closed rapidrapids closed 11 years ago

rapidrapids commented 11 years ago

I'd like to propose the following (happy to develop this if you are happy?):

freqdec commented 11 years ago

Hi,

Actually, the "location of language files" thing is already sitting in my development version (that I will push to github - promise!). Due to the way the language stuff has been coded, deriveLocale is only able to work at a global level, not on individual datepickers - it can already be set within the script tag (using JSON) or by using the setGlobalOptions method.

I really have to get the current development version up on github - I shall make a concerted effort to do this by next week! (it normally takes someone to prompt me like this - sad but true I'm afraid!).

Many thanks for the feedback!

freqdec commented 11 years ago

You can now pass the key "languageFileLocation" (but only when passing the JSON block within the script tags I'm afraid, it has no effect when passed to the setGlobalOptions method) to set the URI used when downloading the language files. Hope this helps.