DEV: Switch from Transifex to Crowdin

This commit is contained in:
Discourse Translator Bot 2020-07-16 14:01:25 +02:00
parent c9ff55b46a
commit fcc90e4fcc
3 changed files with 7 additions and 25 deletions

View File

@ -1,16 +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.pluginsubscriptionsclientyml]
file_filter = config/locales/client.<lang>.yml
source_file = config/locales/client.en.yml
source_lang = en
type = YML
[discourse-org.pluginsubscriptionsserveryml]
file_filter = config/locales/server.<lang>.yml
source_file = config/locales/server.en.yml
source_lang = en
type = YML

View File

@ -1,9 +0,0 @@
#!/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

7
translator.yml Normal file
View File

@ -0,0 +1,7 @@
# Configuration file for discourse-translator-bot
files:
- source_path: config/locales/client.en.yml
destination_path: client.yml
- source_path: config/locales/server.en.yml
destination_path: server.yml