From 31247865fc0c162eaf50890280f5744f44198599 Mon Sep 17 00:00:00 2001 From: Discourse Translator Bot Date: Thu, 16 Jul 2020 14:00:52 +0200 Subject: [PATCH] DEV: Switch from Transifex to Crowdin --- .tx/config | 9 --------- bin/pull_translations.rb | 16 ---------------- translator.yml | 5 +++++ 3 files changed, 5 insertions(+), 25 deletions(-) delete mode 100644 .tx/config delete mode 100755 bin/pull_translations.rb create mode 100644 translator.yml diff --git a/.tx/config b/.tx/config deleted file mode 100644 index d6e7966..0000000 --- a/.tx/config +++ /dev/null @@ -1,9 +0,0 @@ -[main] -host = https://www.transifex.com -lang_map = el_GR: el, es_ES: es, fr_FR: fr, ko_KR: ko, pt_PT: pt, sk_SK: sk, vi_VN: vi - -[discourse-org.docker_managerclientenyml] -file_filter = config/locales/client..yml -source_file = config/locales/client.en.yml -source_lang = en -type = YML diff --git a/bin/pull_translations.rb b/bin/pull_translations.rb deleted file mode 100755 index 96a5dac..0000000 --- a/bin/pull_translations.rb +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env ruby -# frozen_string_literal: true - -# 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 = ['client'] - -TranslationsManager::TransifexUpdater.new(YML_DIRS, YML_FILE_PREFIXES, *ARGV).perform diff --git a/translator.yml b/translator.yml new file mode 100644 index 0000000..4a3e4ab --- /dev/null +++ b/translator.yml @@ -0,0 +1,5 @@ +# Configuration file for discourse-translator-bot + +files: +- source_path: config/locales/client.en.yml + destination_path: client.yml