DEV: Switch from Transifex to Crowdin
This commit is contained in:
parent
0c1a9aa4bc
commit
ab1ec9cb69
15
.tx/config
15
.tx/config
|
@ -1,15 +0,0 @@
|
|||
[main]
|
||||
host = https://www.transifex.com
|
||||
lang_map = el_GR: el, es_ES: es, fr_FR: fr, hu_HU: hu, ko_KR: ko, pt_PT: pt, sk_SK: sk, vi_VN: vi
|
||||
|
||||
[discourse-org.plugindiscourse-data-explorerclientenyml]
|
||||
file_filter = config/locales/client.<lang>.yml
|
||||
source_file = config/locales/client.en.yml
|
||||
source_lang = en
|
||||
type = YML
|
||||
|
||||
[discourse-org.plugindiscourse-data-explorerserverenyml]
|
||||
file_filter = config/locales/server.<lang>.yml
|
||||
source_file = config/locales/server.en.yml
|
||||
source_lang = en
|
||||
type = YML
|
1
Gemfile
1
Gemfile
|
@ -1,6 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
group :development do
|
||||
gem 'translations-manager', git: 'https://github.com/discourse/translations-manager.git'
|
||||
gem 'rubocop-discourse'
|
||||
end
|
||||
|
|
|
@ -1,9 +1,3 @@
|
|||
GIT
|
||||
remote: https://github.com/discourse/translations-manager.git
|
||||
revision: d6da5ff928b9ea39a15c9b6f16b856f46bc9069b
|
||||
specs:
|
||||
translations-manager (0.6)
|
||||
|
||||
GEM
|
||||
specs:
|
||||
ast (2.4.0)
|
||||
|
@ -34,7 +28,6 @@ PLATFORMS
|
|||
|
||||
DEPENDENCIES
|
||||
rubocop-discourse
|
||||
translations-manager!
|
||||
|
||||
BUNDLED WITH
|
||||
2.1.4
|
||||
|
|
|
@ -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 = ['server', 'client']
|
||||
|
||||
TranslationsManager::TransifexUpdater.new(YML_DIRS, YML_FILE_PREFIXES, *ARGV).perform
|
|
@ -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
|
Loading…
Reference in New Issue