Rails Admin Translate
Installation
Add your translation gem to gemfile
gem 'json_translate'
# OR
gem 'globalize'
Then add this gem and run bundle
gem 'rails_admin_translate'
Usage
Don't forget to set I18n.available_locale config, because it uses that to determine what tabs to show
Add configuration to your model. :locale
field is always required.
config.model 'Post' do
field :name do
tabbed false
end
field :description do
tabbed false
end
end
Screenshot
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