A dropdown locale switcher for Blacklight apps
How to use my plugin.
Add this line to your application's Gemfile:
gem 'blacklight-locale_picker'
And then execute:
$ bundle
Or install it yourself as:
$ gem install blacklight-locale_picker
And then run the install generator:
$ rails generate blacklight:locale_picker:install
To add locales to your application, add an initializer.
Blacklight::LocalePicker::Engine.config.available_locales = ['en', 'es', 'pt-BR']
blacklight-locale_picker
ships with i18n-tasks to help manage translations. To run a translation health check, run:
$ bundle exec rake i18n:health