Skip to content

Commit

Permalink
Add 1.0.6 stuff in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
srosa committed Feb 18, 2015
1 parent c8126f2 commit 0291e71
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.md
Expand Up @@ -27,7 +27,7 @@ The lazy lookup will check three more path. Here's the full stack of checkup if
```erb
<%# app/views/persons/index.html.erb %>
t('.title')
<% t('.title') %>
```

```yaml
Expand Down Expand Up @@ -67,6 +67,16 @@ This is for text that is used in any views.

The reason I add the ```views``` key in front of ```persons``` is to clearly separate the translations of the views, models and helpers.

### Recycle text for particular action
If you want to reuse text of an action in a different context, for instance, if you are in the action create
but you want to use the text of the new action. You can call the following on top of your view :

```erb
<%# app/views/persons/create.html.erb %>
<% use_translations_of 'new' %>
```

### Formatting
You can also provide the format options to wrap the content by paragraphs.

Expand Down

0 comments on commit 0291e71

Please sign in to comment.