Transifex integration
This commit is contained in:
parent
8168c717a8
commit
d56188e90e
|
@ -0,0 +1,2 @@
|
||||||
|
auto_generated/
|
||||||
|
.DS_Store
|
|
@ -0,0 +1,15 @@
|
||||||
|
[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.plugindiscourse-chat-integrationclientenyml]
|
||||||
|
file_filter = config/locales/client.<lang>.yml
|
||||||
|
source_file = config/locales/client.en.yml
|
||||||
|
source_lang = en
|
||||||
|
type = YML
|
||||||
|
|
||||||
|
[discourse-org.plugindiscourse-chat-integrationserverenyml]
|
||||||
|
file_filter = config/locales/server.<lang>.yml
|
||||||
|
source_file = config/locales/server.en.yml
|
||||||
|
source_lang = en
|
||||||
|
type = YML
|
|
@ -0,0 +1,3 @@
|
||||||
|
group :development do
|
||||||
|
gem 'translations-manager', git: 'https://github.com/discourse/translations-manager.git'
|
||||||
|
end
|
|
@ -0,0 +1,17 @@
|
||||||
|
GIT
|
||||||
|
remote: https://github.com/discourse/translations-manager.git
|
||||||
|
revision: 7c265df4e60c75f7bea6aa978f79e7364c2c4ac7
|
||||||
|
specs:
|
||||||
|
translations-manager (0.1.1)
|
||||||
|
|
||||||
|
GEM
|
||||||
|
specs:
|
||||||
|
|
||||||
|
PLATFORMS
|
||||||
|
ruby
|
||||||
|
|
||||||
|
DEPENDENCIES
|
||||||
|
translations-manager!
|
||||||
|
|
||||||
|
BUNDLED WITH
|
||||||
|
1.13.6
|
|
@ -0,0 +1,15 @@
|
||||||
|
#!/usr/bin/env ruby
|
||||||
|
|
||||||
|
# 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
|
Loading…
Reference in New Issue