Skip to content

Commit

Permalink
minor README improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
fwolfst committed Jan 29, 2024
1 parent 73bfe00 commit 2291ce7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ blog_post.title_translations # => { de: 'Hey', en: 'Hello world' }

So if you add a `title` field to a BlogPost form it will work on the title in the user’s locale by default. You can override this by setting the record’s `#current_translation_locale`.

### ActiveRecord Validations

Add length or presence validations if you want. They will use the same localization keys for error messages as the standard length and presence validations.

```ruby
Expand Down

0 comments on commit 2291ce7

Please sign in to comment.