Commit graph

2046 commits

Author SHA1 Message Date
Travis CI User
b87759c0d4 pull new editor translations from Transifex 2019-02-13 14:24:56 +00:00
Benjamin Wheeler
e937ec914e
Merge pull request #67 from benjiwheeler/clarify-pull-request-template
clarified country code step in adding new language
2019-02-12 10:30:53 -05:00
chrisgarrity
564ee36353 Add build failure notification to slack
Created a slack integration that posts to the scratch-ops channel and ddded the token as ENV variable in travis.

Configured the slack notification to only post on failure.
2019-02-12 13:36:58 +01:00
chrisgarrity
4bc711e18d pull updated www files and remove outdated ones 2019-02-12 10:55:07 +01:00
chrisgarrity
50761ad970 New scripts to support www in scratch-l10n
* tx-pull-www: pull www translations from transifex
* validate-www: check www for correct placeholders
* add commands to pull and validate www to package.json
* add validating www to the test step
* add pulling www to the update-translations script for the cron job
* changed .tx/config to match the new folder names `scratch-website.<resource-slug>`, and added missing folders. This isn’t needed for the scripts, but it’s useful if you need to pull the translation for a single language/resource
2019-02-12 10:50:43 +01:00
Ben Wheeler
7b7e9435eb clarified country code issue 2019-02-11 14:29:40 -05:00
chrisgarrity
783eab1ae3
Merge pull request #65 from nikhiljha/master
Upgrade Dependencies
2019-02-11 15:21:52 +01:00
Ben Wheeler
b3dda0b9a7 clarified country code step in adding new language 2019-02-07 17:48:37 -05:00
Benjamin Wheeler
d826aeeddb
Merge pull request #66 from benjiwheeler/add-persian-and-central-kurdish
add persian and central kurdish
2019-02-07 17:41:22 -05:00
Ben Wheeler
8ab0e8be7b updated and added translation data files for fa and ckb 2019-02-06 17:09:30 -05:00
Ben Wheeler
1a3e6245e0 add persian and central kurdish 2019-02-06 17:09:23 -05:00
Travis CI User
b51ede6cc4 pull new editor translations from Transifex 2019-02-06 14:25:31 +00:00
Nikhil Jha
a4305a3a8c Upgrade Dependencies 2019-02-02 09:53:30 -08:00
Travis CI User
194a147dbe pull new editor translations from Transifex 2019-01-30 14:24:26 +00:00
Travis CI User
ff3f1d1c8c pull new editor translations from Transifex 2019-01-23 14:27:01 +00:00
Benjamin Wheeler
c2411aa64e
Merge pull request #62 from benjiwheeler/pull-request-template
added pull request template, and note on where to find react-intl info
2019-01-22 09:52:29 -05:00
Ben Wheeler
bb7b458a85 added notes about .tx/config deprecation 2019-01-22 09:51:45 -05:00
Ben Wheeler
4c9541b47d added pull request template, and note on where to find react-intl info 2019-01-18 12:33:24 -05:00
chrisgarrity
8ca0a67b2b
Merge pull request #61 from chrisgarrity/fix-locale-data
Add react-intl locale data for new languages.
2019-01-17 14:14:49 -05:00
chrisgarrity
6c56414704 Add react-intl locale data for new languages. 2019-01-17 13:58:03 -05:00
chrisgarrity
2f54a12043
Merge pull request #60 from chrisgarrity/jan-update-languages
Jan update languages
2019-01-16 14:25:15 -05:00
chrisgarrity
7bf6affd85 update translations for added languages
Also pick up some hungarian changes (a reviewer must be working this morning).
2019-01-16 09:57:10 -05:00
chrisgarrity
324f606a19 Add fully reviewed languages
Adding Bulgarian, Latvian, Nynorsk, and Slovak.

Removing the obsolete `wwwLocales` export.
2019-01-16 09:45:13 -05:00
Travis CI User
59490c7df4 pull new editor translations from Transifex 2019-01-16 14:23:16 +00:00
chrisgarrity
3537e36626
Merge pull request #59 from chrisgarrity/fix-error-checking
Fix placeholder checking
2019-01-10 14:44:14 -05:00
chrisgarrity
7d38349a59 Fix placeholder checking
The placeholder checking didn’t work if the translation’s grammar generated a different number of parsed elements.

E.g., in English:
something {placeholder} — two elements
translation
something {placeholder} something — three elements

I determined that placeholders are always array elements in the parsed array, so filter for Array elements and check that there are the same number of array elements.
2019-01-10 11:51:22 -05:00
Benjamin Wheeler
dbc4a67b26
Merge pull request #57 from chrisgarrity/sync-languages
Sync languages
2018-12-20 17:19:02 -05:00
chrisgarrity
aa8d1365dc Add docs 2018-12-20 17:09:24 -05:00
Travis CI User
7f7604659c pull new editor translations from Transifex 2018-12-20 18:40:25 +00:00
chrisgarrity
a168c93c65 fix language order 2018-12-20 13:29:45 -05:00
chrisgarrity
1850e094a5 Pull out languages not yet reviewed 2018-12-20 11:40:44 -05:00
chrisgarrity
36cbe734e6
Merge pull request #56 from LLK/add-zulu
Add isiZulu
2018-12-13 12:29:28 -05:00
chrisgarrity
08a4ee0b60 Add isiZulu
It was completed earlier this month.
2018-12-13 09:07:56 -05:00
Travis CI User
382a512dff pull new editor translations from Transifex 2018-12-13 13:58:35 +00:00
Travis CI User
6318eb45be pull new editor translations from Transifex 2018-12-10 14:39:04 +00:00
chrisgarrity
7d3a81799f fix bad condition and add auth
And commit to master
2018-12-10 09:18:27 -05:00
chrisgarrity
a591ea9212 [WIP] conditions for cron job on travis 2018-12-07 08:40:46 -05:00
chrisgarrity
283a16c298
Merge pull request #55 from chrisgarrity/automate-travis
Automate travis
2018-12-06 13:52:50 -05:00
chrisgarrity
65b5158149 Add clarifying comment 2018-12-06 13:44:47 -05:00
chrisgarrity
216a766daa pull new REVIEWED editor translations from transifex. 2018-12-06 11:46:21 -05:00
chrisgarrity
475aee4a65 Automate and switch to reviewed
* Add travis deploy step for cron job to update automatically.
* switch to reviewed translations
* make update script check for non-zero return codes from the update and test.
2018-12-06 11:45:45 -05:00
chrisgarrity
8802f277ad
Merge pull request #54 from chrisgarrity/tx-dependency
push/pull scripts need transifex as a dependency
2018-11-29 17:13:33 -05:00
chrisgarrity
6ebde7c676 push/pull scripts need transifex as a dependency
Scripts won’t work in dependent repos unless they also have transifex installed.
2018-11-29 17:02:00 -05:00
chrisgarrity
785e031765 pull new editor translations from Transifex 2018-11-29 15:40:22 -05:00
chrisgarrity
b00f2b9be2
Update README.md 2018-11-27 18:34:22 -05:00
chrisgarrity
757566ef14
Merge pull request #53 from chrisgarrity/tx-automation
Add scripts for automation
2018-11-27 17:45:22 -05:00
chrisgarrity
9c7b8f4f47 pull new editor translations from transifex
- using new script
- removed locales that are not yet supported in gui
2018-11-27 11:39:31 -05:00
chrisgarrity
1646441f4a rename files for clarity
also made the naming convention consistent (dashes not underscore)
2018-11-27 11:36:37 -05:00
chrisgarrity
0f1dafef0e Add bash script for committing sync updates
Also fix copy/paste typo in package.json
2018-11-27 07:32:34 -05:00
chrisgarrity
c286f62d69 Add scripts for automation
* bumped minor version
* added localeMap for converting between transifex locales and the ones used by Scratch (e.g., pt-br - pt_BR)
* using the transifex node package to automatically sync translations
* added scripts:
  * sync_tx_src: uploads an en.json source file, for use by client packages
  * sync_tx_translations: downloads gui translations, used by this repo, flattens Chrome i18n json into plain key-value json.
  * sync_tx_blocks: same as above, but blocks need slightly different handling
  * validate_translations: check the translation json files for basic translation errors
  * tx_util - methods shared by sync and validate
* simplified build-data because jsons have already been flattened
* added new npm tasks
2018-11-25 18:05:44 -05:00