ƒ.static - Get-Kraken/fixx GitHub Wiki

Used for storing static data (constants) like locale month names.


Locale

Used for printing long date formats in different languages. Month names can't be reliably used from native JavaScript as the user's machine might not be set to English. The static locales are therefore used to print out long dates in a specified locale. (See ƒ.date for further info)

Supported locales: (can be extended manually)

  • en-gb
  • en-us

To extend ƒixx with more locales, follow this example (French, Canada, in this case):

$.extend(fixx.static.locale, {'fr-ca': { months: ['janvier','février','mars' /*etc*/] }});