mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08: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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue