Skip to content

Instantly share code, notes, and snippets.

@mileszs
Created December 6, 2011 15:21
Show Gist options
  • Save mileszs/1438553 to your computer and use it in GitHub Desktop.
Save mileszs/1438553 to your computer and use it in GitHub Desktop.
# US English translations for Ruby on Rails
#
# Use this as the base for the locale file of your language.
# Things in a "formats" section for date or time can be called
# like `Date.today.to_s(:short_us)`, without creating an
# initializer to merge the stuffs.
en:
date:
# Anything under "formats"
formats:
default: "%Y-%m-%d"
short: "%b %d"
long: "%B %d, %Y"
longday: "%A, %B %e"
day_names: [Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday]
abbr_day_names: [Sun, Mon, Tue, Wed, Thu, Fri, Sat]
month_names: [~, January, February, March, April, May, June, July, August, September, October, November, December]
abbr_month_names: [~, Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec]
order:
- :year
- :month
- :day
time:
formats:
default: "%m/%d/%Y"
short: "%b %d"
long: "%B %d, %Y"
longday: "%A, %B %e"
twelve_hour_clock: "%I:%M %p"
time: "%l:%M %p"
am: "am"
pm: "pm"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment