projectblacklight / blacklight-locale_picker

A dropdown locale switcher for Blacklight apps
Other
2 stars 2 forks source link
blacklight gem ruby

Build Status

Blacklight::LocalePicker

A dropdown locale switcher for Blacklight apps

Usage

How to use my plugin.

Installation

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

Configuration

To add locales to your application, add an initializer.

Blacklight::LocalePicker::Engine.config.available_locales = ['en', 'es', 'pt-BR']

Translations

blacklight-locale_picker ships with i18n-tasks to help manage translations. To run a translation health check, run:

$ bundle exec rake i18n:health