I successfully created my.yml to localize the names of my models, Example:
attributes:
vendor:
name: שם ספק
counter_number: מספר חשבונית
phone: טלפון
address: כתובת
Now, displaying labels in forms using simple_form f.input, it displays it correctly, the translated value of each attribute.
the problem is displaying errors after validation using
<% @vendor.errors.each do |attribute, error| %>
| attribute | for the error "counter_number", for example, displays: "counter_number". but not translated into a locale file [which, as I mentioned earlier, is configured and loaded successfully]. I added errors to ul.errors, as shown in this screenshot:

Thanks in advance.
source
share