discourse-solved/bin/pull_translations.rb

10 lines
273 B
Ruby
Raw Permalink Normal View History

2017-11-20 18:08:48 -05:00
#!/usr/bin/env ruby
# frozen_string_literal: true
2017-11-20 18:08:48 -05:00
require 'translations_manager'
YML_DIRS = ['config/locales'].map { |d| File.expand_path(d) }
YML_FILE_PREFIXES = ['client', 'server']
TranslationsManager::TransifexUpdater.new(YML_DIRS, YML_FILE_PREFIXES, *ARGV).perform