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: 17 days 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 (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-08-19T15:31:27.000Z (8 months ago)
- Last Synced: 2024-10-31T13:46:07.755Z (6 months ago)
- Topics: blacklight, gem, ruby
- Language: Ruby
- Size: 54.7 KB
- Stars: 2
- Watchers: 24
- 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
```