discourse-solved/bin/pull_translations.rb

10 lines
273 B
Ruby
Executable File

#!/usr/bin/env ruby
# frozen_string_literal: true
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