Commit graph

16 commits

Author SHA1 Message Date
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
chrisgarrity
99e0adceac update webpack-cli 2018-10-04 10:06:47 -04:00
Ray Schamp
49efcb8914
Merge pull request #19 from mzgoddard/dependents-no-boiler
Use src/index as browser entry point
2018-05-31 17:46:18 -04:00
chrisgarrity
73f9b8619e Refactor data exported for GUI
Create editor folder for all the editor components:
* blocks - from scratch-blocks
* extensions - from scratch-vm
* interface - from scratch-gui
* paint-editor - from scratch-paint.

Update the transifex config, initilaize with the english sources.

Export a combined editor-msgs.js in addition to individual files.

Renamed paint to paint-editor to match the name in transifex.
2018-05-21 09:42:53 -04:00
Ray Schamp
1e976a53fd
Merge pull request #17 from mzgoddard/babel-preset-env
Replace babel-preset-es2015 with babel-preset-env
2018-05-11 11:09:50 -04:00
Michael "Z" Goddard
1ea67b3e70
chore(package): expose src/index as browser entry point
Downstream webpack will need any dependencies src/ depends on so it can
successfully build. Also if multiple packages being built into a larger
script share a common dependency version range, they can share the
dependency instead of duplicating it. This will save built file size,
execution time, and memory.
2018-05-09 10:25:44 -04:00
Michael "Z" Goddard
c713d02ee1
Update to webpack 4 2018-05-07 14:38:02 -04:00
Michael "Z" Goddard
ec9f8bf3e3
Replace babel-preset-es2015 with babel-preset-env 2018-05-07 14:35:54 -04:00
chrisgarrity
26e3bd064d Add www resources
Add scratch-www translation resources and include in the pubished package.
2018-03-13 11:46:37 -04:00
chrisgarrity
12a43c94d3 Add script for building en.json
Add dependency on babel-cli and the intl plugins for extracting strings from source.

Include script for combining extracted strings into a single source chrome-i18n file as a binary from this package.
2017-10-31 12:31:29 -04:00
chrisgarrity
0cb13cbaee Add scratch-paint
Breaking change - bumped major version to 2.

Restructured to support multiple components. Package default is just localeData for currently supported locales including the name for each language.

messages for each component are exported as separate files in locales. Clients of l10n will need to import messages for each of the compents used and combine them.
2017-10-17 13:28:24 -04:00
chrisgarrity
c6f52ae643 Npm versioning (#4)
* replace patchversion with date-time stamp:  YYYYmmddHHMMSS

* Bump to first major version

Ready to start using this in gui.
2017-10-05 10:20:59 -04:00
chrisgarrity
4a9cdc7f4a L10n packaging (#1)
* Initial version of scratch-l10n package
2017-09-21 11:54:41 -04:00
chrisgarrity
89ae32c626 Experimental scratch-gui translations
Initial version with experimental translations
2017-07-20 15:59:38 -04:00