Skip to content

Commit 009b55f

Browse files
authored
Add custom I18n example on doc
Maybe it could be part of the template generation. This pull request avoid the user search into the code to know the I18n key.
1 parent a684524 commit 009b55f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Diff for: README.md

+9
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,15 @@ end
499499
Note that you *will eventually have data corruption* if you disable advisory locks, write to your
500500
database with multiple threads, and don't provide an alternative mutex.
501501

502+
## I18n
503+
504+
You can customize error messages using [I18n](http://guides.rubyonrails.org/i18n.html):
505+
506+
```yaml
507+
en-US:
508+
closure_tree:
509+
loop_error: Your descendant cannot be your parent!
510+
```
502511

503512
## FAQ
504513

0 commit comments

Comments
 (0)