class AdminMailer < ActionMailer::Base
  default from: 'team@speakerinnen.org'

  def new_profile_confirmed(profile)
    @profile = profile
    @url = 'https://github.com/rubymonsters/speakerinnen_liste/wiki/Approve-new-Speakerinnen*-so-they-get-published'
    mail(to: 'christiane@speakerinnen.org, annalist@riseup.net, maren.heltsche@gmail.com', subject: 'Publish new Speakerinnen Profile')
  end

  def profile_published(profile)
    @profile = profile
    @url = 'https://www.speakerinnen.org'
    mail(to: @profile.email, subject: I18n.t('devise.mailer.published.subject'))
  end
end

class AdminMailer < ActionMailer::Base
  default from: 'team@speakerinnen.org'

  def new_profile_confirmed(profile)
    @profile = profile
    @url = 'https://github.com/rubymonsters/speakerinnen_liste/wiki/Approve-new-Speakerinnen*-so-they-get-published'
    mail(to: 'christiane@speakerinnen.org, annalist@riseup.net, maren.heltsche@gmail.com', subject: 'Publish new Speakerinnen Profile')
  end

  def profile_published(profile)
    @profile = profile
    @url = 'https://www.speakerinnen.org'
    I18n.with_locale(@profile.locale) do
      mail(
        to: @profile.email,
        subject: I18n.t('devise.mailer.published.subject')
      )
    end
  end
end

Add the locale to the profile_published mailer
Add the locale to the profile_published mailer
