discourse-data-explorer/bin/pull_translations.rb

16 lines
425 B
Ruby
Raw Normal View History

2017-12-07 17:54:31 -05:00
#!/usr/bin/env ruby
# Usage:
# bundle install
# bundle exec bin/pull_translations.rb
#
# To choose which languages to update, list them as arguments:
# bundle exec bin/pull_translations.rb he uk
require 'translations_manager'
YML_DIRS = ['config/locales'].map { |d| File.expand_path(d) }
YML_FILE_PREFIXES = ['server', 'client']
TranslationsManager::TransifexUpdater.new(YML_DIRS, YML_FILE_PREFIXES, *ARGV).perform