Skip to content

A platform for community discussion. Free, open, simple.

update plugin-translations.rb script to update .tx/config file in plugins when languages are added or removed

Neil Lalonde4653627a4062
diff --git a/script/plugin-translations.rb b/script/plugin-translations.rb
index e43a72afd95..f4ed4165c96 100644
--- a/script/plugin-translations.rb
+++ b/script/plugin-translations.rb
@@ -49,6 +49,7 @@ class PluginTxUpdater
system_cmd('bundle exec bin/pull_translations.rb')
system_cmd('git add config/locales/*')
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 push origin master') if @push
rescue => e