Skip to content

Instantly share code, notes, and snippets.

@clemens
Created August 6, 2014 18:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clemens/10206f8aaab38f3398b2 to your computer and use it in GitHub Desktop.
Save clemens/10206f8aaab38f3398b2 to your computer and use it in GitHub Desktop.
Example pulled from the delocalize readme for Ruby 1.9 compatible YAML formatting
en:
number:
format:
separator: '.'
delimiter: ','
precision: 2
date:
input:
formats:
- :default
- :long
- :short
formats:
default: "%m/%d/%Y"
short: "%b %e"
long: "%B %e, %Y"
only_day: "%e"
day_names:
- Sunday
- Monday
- Tuesday
- Wednesday
- Thursday
- Friday
- Saturday
abbr_day_names:
- Sun
- Mon
- Tue
- Wed
- Thur
- 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:
- :month
- :day
- :year
time:
input:
formats:
- :default
- :long
- :short
- :time
formats:
default: "%m/%d/%Y %I:%M%p"
short: "%B %e %I:%M %p"
long: "%A, %B %e, %Y %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