Skip to content

Instantly share code, notes, and snippets.

@karellm
Created December 26, 2011 17:50
Show Gist options
  • Save karellm/1521706 to your computer and use it in GitHub Desktop.
Save karellm/1521706 to your computer and use it in GitHub Desktop.
Fast Gettext initializer
# config/initializers/fast_gettext.rb
FastGettext.add_text_domain 'app', :path => 'locale'
FastGettext.default_available_locales = ['en', 'fr']
FastGettext.default_text_domain = 'app'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment