README.md in traducto-1.0.6 vs README.md in traducto-1.0.7
- old
+ new
@@ -25,11 +25,11 @@
The lazy lookup will check three more path. Here's the full stack of checkup if you call the following :
```erb
<%# app/views/persons/index.html.erb %>
- t('.title')
+ <% t('.title') %>
```
```yaml
en:
views:
@@ -64,9 +64,19 @@
index:
title: "Title"
```
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.
```yaml