Skip to content

Commit

Permalink
Add custom I18n example on doc
Browse files Browse the repository at this point in the history
Maybe it could be part of the template generation.
This pull request avoid the user search into the code to know the I18n key.
  • Loading branch information
wbotelhos authored Apr 15, 2017
1 parent a684524 commit 009b55f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,15 @@ end
Note that you *will eventually have data corruption* if you disable advisory locks, write to your
database with multiple threads, and don't provide an alternative mutex.

## I18n

You can customize error messages using [I18n](http://guides.rubyonrails.org/i18n.html):

```yaml
en-US:
closure_tree:
loop_error: Your descendant cannot be your parent!
```

## FAQ

Expand Down

0 comments on commit 009b55f

Please sign in to comment.