I18n Dashboard
Rails Engine for I18n management with redis as backend.
Screenshots
Installation
Add this line to your application's Gemfile:
gem 'i18n_dashboard'
And then execute:
$ bundle
Modify your config/routes.rb and add:
mount I18nDashboard::Engine => '/i18n_dashboard'
Add to the bottom of config/environment.rb
I18nDashboard::Engine.load!
Customize
Redis configuration:
I18nDashboard::Engine.redis = Redis.new
Customize layout
I18nDashboard::TranslationsController.layout 'admin'
And add //= require i18n_dashboard/application
to your javascript.
But beware, you may have to change somethings in your template like:
# partials
render 'admin_menu'
# change by for example
render 'application/admin_menu'
# or routes
admin_root_path
# add the prefix main_app
main_app.admin_root_path
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request