Skip to content

Instantly share code, notes, and snippets.

@bosskovic
Last active December 21, 2015 01:58
Show Gist options
  • Save bosskovic/6231162 to your computer and use it in GitHub Desktop.
Save bosskovic/6231162 to your computer and use it in GitHub Desktop.
Example yaml file for the I18n demonstration
---
en:
greetings:
hello:
world: Hello World!
friend: Hello Friend!
user: Hello %{user}
inbox:
messages:
one: You have one message in your inbox.
other: You have %{count} messages in your inbox.
time:
am: a.m.
formats:
default: ! '%a, %d %b %Y %H:%M:%S %z'
long: ! '%B %d, %Y %H:%M'
short: ! '%d %b %H:%M'
pm: p.m.
date:
abbr_day_names:
- Sun
- Mon
- Tue
- Wed
- Thu
- Fri
- Sat
abbr_month_names:
-
- Jan
- Feb
- Mar
- Apr
- May
- Jun
- Jul
- Aug
- Sep
- Oct
- Nov
- Dec
day_names:
- Sunday
- Monday
- Tuesday
- Wednesday
- Thursday
- Friday
- Saturday
formats:
birth: ! '%d.%m.'
default: ! '%Y-%m-%d'
long: ! '%B %d, %Y'
month_and_year: ! '%b %Y'
short: ! '%b %d'
month_names:
-
- January
- February
- March
- April
- May
- June
- July
- August
- September
- October
- November
- December
order:
- year
- month
- day
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment