i18n-tasks: devise translations reported as missing

Scratching my head about this for a couple of hours. Maybe I’m doing something stupid, but I thought I’d ask anyway.

We have translations for devise in config/locales/devise.(en|de|...).yml. I’ve updated the generated config so it looks like this

data:
   :adapter: I18n::Tasks::Data::FileSystem
   :config: !ruby/hash:ActiveSupport::HashWithIndifferentAccess
     read:
      - config/locales/%{locale}.yml
      - config/locales/devise.%{locale}.yml
      write:
      - config/locales/%{locale}.yml
      - config/locales/devise.%{locale}.yml

For some reason I get the devise translations reported missing, even though they are working fine.

Did I miss anything??

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 21 (11 by maintainers)

Commits related to this issue

Most upvoted comments

This config looks like it was generated with an older version (<0.4.5). Below should work for you:

data:
  adapter: file_system
  read:
  - 'config/locales/%{locale}.yml'
  - 'config/locales/devise.%{locale}.yml'
  write:
  - ['devise.*', 'config/locales/devise.%{locale}.yml']
  - 'config/locales/%{locale}.yml'

hey @glebm - sorry to trouble you, but I’m having some hard time with gittip. We tried to set a one-off tip, but apparently it isn’t supported, so we followed the workaround, but I’m not even sure whether you received it.

The whole idea was just a small tip to say thanks, but now I feel like a fraud for not being able to send it. Do you have a paypal account? might be easier this way. It’s really a small token, but I would still like to be able to give it.