prograils / lit

rails i18n web interface
MIT License
298 stars 71 forks source link

Rails 5 support #93

Closed zhisme closed 6 years ago

zhisme commented 6 years ago

Hey everyone. I just needed your gem to my rails project. So my versions are:

ruby 2.4.3
rails 5.1.4

And I successfully migrated it. It's available in my fork, I will make more further fixes, so if someone needs you can clone repo from my side.

Also in project which you inserting this gem you will need to add the following to your config/initializers/assets.rb

Rails.application.config.assets.precompile += %w[lit/famfamfam_flags/$locale_name.png]

where $locale_name is collection of your available locales in rails project. e.g.

config.i18n.available_locales = %i[ru en de fr cn]
zhisme commented 6 years ago

@mlitwiniuk So build passing now, we just need to decide which solution to use for migrations for both 5 and 4 rails. Check my proposal in comment.

mlitwiniuk commented 6 years ago

I'll update README tomorrow with recent changes (ie. possibility to view all called translations in a widget in frontend) and (once mentioned are fixed by you), I'll merge those in and release 0.3.0. It's about time to do this.

zhisme commented 6 years ago

@mlitwiniuk All mentioned issues fixed.