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 or in rake task.
I18nDashboard::Engine.load!
Customize
Redis configuration:
I18nDashboard::Engine.redis = Redis.new
Advanced
I18nDashboard.configure do |config|
config.layout = 'admin'
config.inline_main_app_named_routes = true
end
If change the layout you should keept in mind:
- Add
//= require i18n_dashboard/application
to your javascript. - Specify the path to te partials
render 'application/admin_menu'
instead ofrender 'admin_menu'
. - Add prefix
main_app
to the main app routes or setinline_main_app_named_routes = true
.
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