You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm looking for a solution to translate our rails apps.
We have a development (rails production env) environment where we want to have users to translate the environment.
Is there a way to retrieve / sync the keys to a developer so that the changes in the translations can be committed?
The text was updated successfully, but these errors were encountered:
@johansmitsnl do you still have this issue? In case you do here's how I approached the problem.
Just to iterate that I understood correctly: Your users have translated some phrases in production app. So the translations are in production database. You want to take the translations from production database and dump them into YAML files on developers computer so they can commit them and thus make available to the production app (e.g. via Rails's I18n.t?
If that's the case then one way would be to connect to make ActiveRecord connect to prod database from developer's machine and call Tolk's dump task after:
defdump(locale,db_url)ActiveRecord::Base.establish_connection(db_url)Tolk::Locale.dump_yaml(locale)# or Tolk::Locale.dump_all to dump allend
I'm looking for a solution to translate our rails apps.
We have a development (rails production env) environment where we want to have users to translate the environment.
Is there a way to retrieve / sync the keys to a developer so that the changes in the translations can be committed?
The text was updated successfully, but these errors were encountered: