This commit is contained in:
Rico Sta. Cruz 2015-04-16 20:50:15 +08:00
parent 1b3e7fca9a
commit 975ff782e4
1 changed files with 7 additions and 2 deletions

View File

@ -3,8 +3,6 @@ title: Rails i18n
layout: default layout: default
--- ---
### Basics
```rb ```rb
t('my.messages.hello') t('my.messages.hello')
@ -16,6 +14,13 @@ t('my.messages.hello', default: "Hello")
``` ```
{:.light} {:.light}
```yml
en:
my:
messages:
hello: "Hello"
```
### Interpolation ### Interpolation
```rb ```rb