mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
update plugin-translations.rb script to update .tx/config file in plugins when languages are added or removed
This commit is contained in:
parent
6afc86398c
commit
4653627a40
@ -49,6 +49,7 @@ class PluginTxUpdater
|
|||||||
system_cmd('bundle exec bin/pull_translations.rb')
|
system_cmd('bundle exec bin/pull_translations.rb')
|
||||||
system_cmd('git add config/locales/*')
|
system_cmd('git add config/locales/*')
|
||||||
system_cmd('git add Gemfile.lock') rescue true # might be gitignored
|
system_cmd('git add Gemfile.lock') rescue true # might be gitignored
|
||||||
|
system_cmd('git add .tx/config') rescue true
|
||||||
system_cmd('git commit -m "Update translations"')
|
system_cmd('git commit -m "Update translations"')
|
||||||
system_cmd('git push origin master') if @push
|
system_cmd('git push origin master') if @push
|
||||||
rescue => e
|
rescue => e
|
||||||
|
Loading…
Reference in New Issue
Block a user