Skip to content

Commit

Permalink
fix(locales): upload locale files so that Transifex creds no longer n…
Browse files Browse the repository at this point in the history
…ecessary
  • Loading branch information
tuxpiper committed Jul 10, 2020
1 parent 38c649c commit e992fb9
Show file tree
Hide file tree
Showing 25 changed files with 52,180 additions and 6 deletions.
2,371 changes: 2,371 additions & 0 deletions app/common/locales/ar.json

Large diffs are not rendered by default.

2,371 changes: 2,371 additions & 0 deletions app/common/locales/bg-BG.json

Large diffs are not rendered by default.

2,371 changes: 2,371 additions & 0 deletions app/common/locales/cs.json

Large diffs are not rendered by default.

2,371 changes: 2,371 additions & 0 deletions app/common/locales/de.json

Large diffs are not rendered by default.

2,371 changes: 2,371 additions & 0 deletions app/common/locales/es.json

Large diffs are not rendered by default.

2,371 changes: 2,371 additions & 0 deletions app/common/locales/fa-IR.json

Large diffs are not rendered by default.

2,371 changes: 2,371 additions & 0 deletions app/common/locales/fr-FR.json

Large diffs are not rendered by default.

2,371 changes: 2,371 additions & 0 deletions app/common/locales/fr.json

Large diffs are not rendered by default.

2,371 changes: 2,371 additions & 0 deletions app/common/locales/ht.json

Large diffs are not rendered by default.

2,371 changes: 2,371 additions & 0 deletions app/common/locales/hu.json

Large diffs are not rendered by default.

2,371 changes: 2,371 additions & 0 deletions app/common/locales/id.json

Large diffs are not rendered by default.

2,371 changes: 2,371 additions & 0 deletions app/common/locales/it.json

Large diffs are not rendered by default.

2,371 changes: 2,371 additions & 0 deletions app/common/locales/ja.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions app/common/locales/languages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"languages":[{"rtl":false,"pluralequation":"language.pluralequation","code":"sq-AL","name":"Albanian (Albania)","nplurals":2},{"rtl":true,"pluralequation":"language.pluralequation","code":"ar","name":"Arabic","nplurals":6},{"rtl":false,"pluralequation":"language.pluralequation","code":"bg-BG","name":"Bulgarian (Bulgaria)","nplurals":2},{"rtl":false,"pluralequation":"language.pluralequation","code":"zh","name":"Chinese","nplurals":1},{"rtl":false,"pluralequation":"language.pluralequation","code":"zh-TW","name":"Chinese (Taiwan)","nplurals":1},{"rtl":false,"pluralequation":"language.pluralequation","code":"cs","name":"Czech","nplurals":4},{"rtl":false,"pluralequation":"language.pluralequation","code":"nl","name":"Dutch","nplurals":2},{"rtl":false,"pluralequation":"language.pluralequation","code":"en","name":"English","nplurals":2},{"rtl":false,"pluralequation":"language.pluralequation","code":"fr","name":"French","nplurals":2},{"rtl":false,"pluralequation":"language.pluralequation","code":"fr-FR","name":"French (France)","nplurals":2},{"rtl":false,"pluralequation":"language.pluralequation","code":"de","name":"German","nplurals":2},{"rtl":false,"pluralequation":"language.pluralequation","code":"ht","name":"Haitian (Haitian Creole)","nplurals":2},{"rtl":false,"pluralequation":"language.pluralequation","code":"hu","name":"Hungarian","nplurals":2},{"rtl":false,"pluralequation":"language.pluralequation","code":"id","name":"Indonesian","nplurals":1},{"rtl":false,"pluralequation":"language.pluralequation","code":"it","name":"Italian","nplurals":2},{"rtl":false,"pluralequation":"language.pluralequation","code":"ja","name":"Japanese","nplurals":1},{"rtl":true,"pluralequation":"language.pluralequation","code":"fa-IR","name":"Persian (Iran)","nplurals":2},{"rtl":false,"pluralequation":"language.pluralequation","code":"pt-BR","name":"Portuguese (Brazil)","nplurals":2},{"rtl":false,"pluralequation":"language.pluralequation","code":"ru","name":"Russian","nplurals":4},{"rtl":false,"pluralequation":"language.pluralequation","code":"es","name":"Spanish","nplurals":2},{"rtl":false,"pluralequation":"language.pluralequation","code":"sw","name":"Swahili","nplurals":2},{"rtl":false,"pluralequation":"language.pluralequation","code":"vi","name":"Vietnamese","nplurals":1},{"rtl":false,"pluralequation":"language.pluralequation","code":"vi-VN","name":"Vietnamese (Viet Nam)","nplurals":1}]}
2,371 changes: 2,371 additions & 0 deletions app/common/locales/nl.json

Large diffs are not rendered by default.

2,371 changes: 2,371 additions & 0 deletions app/common/locales/pt-BR.json

Large diffs are not rendered by default.

2,371 changes: 2,371 additions & 0 deletions app/common/locales/ru.json

Large diffs are not rendered by default.

2,371 changes: 2,371 additions & 0 deletions app/common/locales/sq-AL.json

Large diffs are not rendered by default.

2,371 changes: 2,371 additions & 0 deletions app/common/locales/sw.json

Large diffs are not rendered by default.

2,371 changes: 2,371 additions & 0 deletions app/common/locales/vi-VN.json

Large diffs are not rendered by default.

2,371 changes: 2,371 additions & 0 deletions app/common/locales/vi.json

Large diffs are not rendered by default.

2,371 changes: 2,371 additions & 0 deletions app/common/locales/zh-TW.json

Large diffs are not rendered by default.

2,371 changes: 2,371 additions & 0 deletions app/common/locales/zh.json

Large diffs are not rendered by default.

20 changes: 15 additions & 5 deletions gulpfile.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ let paths = {
output: root,
// blankTemplates: path.join(__dirname, 'generator', 'component/**/*.**'),
config: resolveToApp('config.js'),
languages: resolveToApp('common/locales'),
dest: path.join(__dirname, 'server/www')
};

Expand Down Expand Up @@ -103,28 +104,34 @@ function buildTar() {
}

// Downloading translations from transifex
function transifexDownload(done) {
function copyLanguages(done) {
// argv.dev checks if the --dev flag was sent when calling the task
let destination = argv.dev ? path.join(__dirname, root) : paths.dest;
// Make sure we have dest dir
try {
fs.mkdirSync(destination);
fs.mkdirSync(destination + '/locales/');
}
catch (err) {
if (err.code !== 'EEXIST') {
throw err;
}
}
require('./gulp/transifex-download')(destination + '/locales/', done);
src([paths.languages + '/*']).pipe(dest(destination + '/locales/'));

done();
}
function downloadLanguages(done) {
// argv.dev checks if the --dev flag was sent when calling the task
let destination = argv.dev ? path.join(__dirname, root) : paths.dest;
require('./gulp/transifex-download')('app/common/locales/', done);
done();
}

/**
* Build-options
*/

// use webpack.config.js to build modules
task('dist', series(clean, distWebpack, distConfig, transifexDownload));
task('dist', series(clean, distWebpack, distConfig, downloadLanguages, copyLanguages));
task('build', series('dist'));

/**
Expand Down Expand Up @@ -300,3 +307,6 @@ task('verify', verify);

// Run helper in browser
task('dev:verifier', series(startVerifier, devServer));

// Run helper in console
task('languages', downloadLanguages);
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"protractor": "protractor test/protractor-conf.js",
"eslint": "gulp eslint",
"eslintfix": "gulp eslintfix",
"verify": "gulp verify"
"verify": "gulp verify",
"languages" : "gulp languages"
},
"pre-commit": [
"eslint"
Expand Down

0 comments on commit e992fb9

Please sign in to comment.