Skip to content

Instantly share code, notes, and snippets.

@bosskovic
Created August 19, 2013 07:54
Show Gist options
  • Save bosskovic/6266650 to your computer and use it in GitHub Desktop.
Save bosskovic/6266650 to your computer and use it in GitHub Desktop.
Example yaml file for r18n demonstration
greetings:
hello:
world: Hello World!
friend: Hello Friend!
user: Hello %1, welcome to %2
inbox:
messages: !!pl
0: Your inbox is empty.
1: You have one message in your inbox.
n: You have %1 messages in your inbox.
hi: !!markdown
Hi, **people**!
greater: !!escape
1 < 2 is true
greater_no_filter:
1 < 2 is true
alarm: !!textile
It will delete _all_ users!
sum: !!proc |x, y| x + y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment