rails-i18n icon indicating copy to clipboard operation
rails-i18n copied to clipboard

en locale errors.template.header wrongly reported as having broken data

Open digitalfrost opened this issue 3 years ago • 3 comments

thor locales:test en

wrongly reports that the key errors.template.header has broken data.

The data for the keys:

  • looks fine
  • is en.yml so should be the reference version and not broken
  • is the same as in en-GB which if tested does not report the keys as having broken data

digitalfrost avatar Aug 31 '22 09:08 digitalfrost

      header:
        one: 1 error prohibited this %{model} from being saved
        other: "%{count} errors prohibited this %{model} from being saved"

If %{model} is deleted from the two lines the keys are not reported as being broken

digitalfrost avatar Sep 10 '22 18:09 digitalfrost

I am not sure this key is still in rails. I can't seem to find it via grep

digitalfrost avatar Sep 10 '22 18:09 digitalfrost

It still exists (somewhat): https://github.com/rails/rails/blob/791f109d97a38f8b9fe8a8c3d6d0a7acd70f1edb/railties/lib/rails/generators/erb/scaffold/templates/_form.html.erb.tt#L4

Fixed in #1087.

jlduran avatar Jun 06 '23 15:06 jlduran