Translate nested model errors

Hi!

In rails 4, how do you translate model and attributes names for models
with accepts_nested_attributes_for? Everything works fine except for the
error messages of the nested model.

Here’s what I have so far (without my attempt to translate the nested
model:

activerecord:
errors:
<<: *errors
models:
player: Giocatore
score: Punteggio
attributes:
player:
some_field: Blah…
score:
points: Punti

When a player is created, I have a nested form that allows the creation
of an initial score, therefore the Player model has:
accepts_nested_attributes_for :scores

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs