Contains the messages for Date and Date.Extras.

Simply change the language property to the locale code, for example en-US.

Locale.use('en-US');

See also:

Language Locale Code Authors
Arabic ar Chafik Barbar
Catalan ca-CA Alfons Sanchez
Chinese (simplified) zh-CHS YMind Chan
Chinese (traditional) zh-CHT YMind Chan
Czech cs-CZ Jan Černý
Danish da-DK Martin Overgaard
Dutch nl-NL Lennart Pilon
English (GB) en-GB Aaron Newton
English (US) en-US Aaron Newton
Estonian et-EE Kevin Valdek
Finnish fi-FI ksel
French fr-FR Nicolas Sorosac
German (Switzerland) de-CH Michael van der Weg
German de-DE Frank Rossi, Ulrich Petri
Hungarian hu-HU Zsolt Szegheő
Italian it-IT Andrea Novero, Valerio Proietti
Japanese ja-JP Noritaka Horio
Norwegian no-NO Espen 'Rexxars' Hovlandsdal
Persian (Farsi) fa Amir Hossein Hodjaty Pour
Polish pl-PL Oskar Krawczyk
Portuguese (Brazil) pt-BR Fábio Miranda Costa
Portuguese pt-PT Fábio Miranda Costa
Russian ru-RU Evstigneev Pavel
Slovenian si-SI Radovan Lozej
Spanish (Argentina) es-AR Ãlfons Sanchez, Diego Massanti
Spanish es-ES Ãlfons Sanchez
Swedish sv-SE Martin Lundgren
Turkish tr-TR Faruk Can Bilir
Ukrainian uk-UA Slik

Used by Date

  • months - (array) An array of month names for the language (January, February, etc)
  • months_abbr - (array) An array of all abbreviations of month names (jan, feb, apr, etc)
  • days - (array) An array of names for the days of the week (Monday, Tuesday, etc)
  • days_abbr - (array) An array of all abbreviations of day names (sun, mon, tue, etc)
  • dateOrder - (array) An array specifying the order for date expression followed by a default delimiter (usually /). US english is ['month', 'date', 'year', '/'], for instance.
  • AM - (string) the string that denotes morning in 12 hour time
  • PM - (string) the string that denotes evening in 12 hour time
  • ordinal - (function) A method that returns the proper ordinal ("th", "st", "nd", etc) given a day of the month.
  • firstDayOfWeek - (number) The index of the first day of the week, 0 = Sunday - 6 = Saturday

Used by Date.Extras

  • lessThanMinuteAgo - (string) 'less than a minute ago'
  • minuteAgo - (string) 'about a minute ago'
  • minutesAgo - (string) '{delta} minutes ago' where {delta} is the number of minutes
  • hourAgo - (string) 'about an hour ago'
  • hoursAgo - (string) 'about {delta} hours ago' where {delta} is the number of hours
  • dayAgo - (string) '1 day ago'
  • daysAgo - (string) '{delta} days ago' where {delta} is the number of days
  • weekAgo - (string) '1 week ago'
  • weeksAgo - (string) '{delta} weeks ago' where {delta} is the number of weeks
  • monthAgo - (string) '1 month ago'
  • monthsAgo - (string) '{delta} months ago' where {delta} is the number of months
  • yearAgo - (string) '1 year ago'
  • yearsAgo - (string) '{delta} years ago' where {delta} is the number of years
  • lessThanMinuteUntil - (string) 'less than a minute from now'
  • minuteUntil - (string) 'about a minute from now'
  • minutesUntil - (string) '{delta} minutes from now' where {delta} is the number of minutes
  • hourUntil - (string) 'about an hour from now'
  • hoursUntil - (string) 'about {delta} hours from now' where {delta} is the number of hours
  • dayUntil - (string) '1 day from now'
  • daysUntil - (string) '{delta} days from now' where {delta} is the number of days
  • weekUntil - (string) '1 week from now'
  • weeksUntil - (string) '{delta} weeks from now' where {delta} is the number of weeks
  • monthUntil - (string) '1 month from now'
  • monthsUntil - (string) '{delta} months from now' where {delta} is the number of months
  • yearUntil - (string) '1 year from now'
  • yearsUntil - (string) '{delta} years from now' where {delta} is the number of years