brandonhilkert / sucker_punch

Sucker Punch is a Ruby asynchronous processing library using concurrent-ruby, heavily influenced by Sidekiq and girl_friday.
MIT License
2.65k stars 114 forks source link

Can it handle locales? #216

Closed timokleemann closed 6 years ago

timokleemann commented 6 years ago

Is SuckerPunch generally capable of handling Rails' locales?

I am having a hard time getting this to work: https://stackoverflow.com/questions/49940097/how-to-pass-locale-to-activejob-suckerpunch-when-sending-delayed-email

But I might be missing something really fundamental here.

timokleemann commented 6 years ago

OK, I just realized this is not an issue directly related to SuckerPunch. It seems that when sending email with ActiveJob you have to pass in the locale manually like this: I18n.with_locale(@user.locale). I am closing this.