scarfacedeb / rails_admin_globalize_field

Tabbed interface and custom field type for globalize translations for Rails_admin
MIT License
50 stars 60 forks source link

Translations tab shows all available locales #6

Closed vuvanly closed 9 years ago

vuvanly commented 10 years ago

When i use this gem, it will show all available locales on tabs. So i have to custom

module ProductServer
  class Application < Rails::Application
    I18n.available_locales = [:en, :vi]
  end
end

in config/application.rb file to just only show which locales i want.

scarfacedeb commented 10 years ago

You're right. It's implied that you have I18n.available_locales set in multilingual app by default. (For example, I iterate over that array to show links to switch to another version). Do you think a note about this should be added to README?

vuvanly commented 10 years ago

yeah, i think we should have in README. @scarfacedeb maybe someone will not know it.