Skip to content

Instantly share code, notes, and snippets.

@jcieslar
Created June 16, 2015 12:00
Show Gist options
  • Save jcieslar/57bc9586575aaf72986a to your computer and use it in GitHub Desktop.
Save jcieslar/57bc9586575aaf72986a to your computer and use it in GitHub Desktop.
custom locales only for part of app - I18n.with_locale
def send_email
# I18n.locale => :en
I18n.with_locale(:pl) do
# I18n.locale => :pl
end
# I18n.locale => :en
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment