E
E
Evgeny Strashko2016-01-12 16:27:51
Ruby on Rails
Evgeny Strashko, 2016-01-12 16:27:51

How to add locales for i18n from admin panel?

Hello. There is a project on rails 3.2.2, which implements work with several languages ​​(currently 3). There was a need to add locales from the admin panel. I did editing existing locales, but I can’t figure it out with the creation of new ones.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Anton, 2016-01-12
@hummingbird

Well, you're editing something, aren't you? This is something that needs to be created. Tell me, for starters, what exactly do you edit?
I understand this is a .yml file?

V
vsuhachev, 2016-01-12
@vsuhachev

You need to find/write your own backend for the i18n gem that takes localization data from the database. What you have done for yml files will not work in production without reloading the whole application.

D
Dima, 2016-01-12
@MAXOPKA

There is a gem made in the form of Engine - https://github.com/tolk/tolk . It can be installed and mounted to admin panel routes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question