https://github.com/projectblacklight/blacklight-locale_picker
A dropdown locale switcher for Blacklight apps
https://github.com/projectblacklight/blacklight-locale_picker
blacklight gem ruby
Last synced: 8 months ago
JSON representation
A dropdown locale switcher for Blacklight apps
- Host: GitHub
- URL: https://github.com/projectblacklight/blacklight-locale_picker
- Owner: projectblacklight
- License: other
- Created: 2019-08-16T00:23:32.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2024-12-05T03:17:27.000Z (over 1 year ago)
- Last Synced: 2025-07-18T10:11:58.077Z (11 months ago)
- Topics: blacklight, gem, ruby
- Language: Ruby
- Size: 56.6 KB
- Stars: 2
- Watchers: 21
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# Blacklight::LocalePicker
A dropdown locale switcher for Blacklight apps
## Usage
How to use my plugin.
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'blacklight-locale_picker'
```
And then execute:
```bash
$ bundle
```
Or install it yourself as:
```bash
$ gem install blacklight-locale_picker
```
And then run the install generator:
```bash
$ 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
```