Commit graph

7 commits

Author SHA1 Message Date
Christopher Willis-Ford
41c1466604 build: fix webpack build 2024-10-29 08:27:10 -07:00
Christopher Willis-Ford
44c4b97581 refactor!: stop using babel-node
This should improve call stacks when debugging.

BREAKING CHANGE: Some files have been renamed from '.js' to '.mjs'
2024-10-28 13:48:36 -07:00
Chris Garrity
e563259149 Refactor so it’s not a breaking change
Add new index.js that re-exports the locale-data and supported-locales so that dependents of scratch-l10n can continue to work without changing. (With corresponding changes in webpack.config.js and package.json.)
2021-06-16 10:20:34 -04:00
Chris Garrity
cbf8defe97 Remove dependency on react-intl
* Separate locale-data from supported languages, and export as a separate entry in webpack
* copy react-intl locale-data locally So we can continue to support dependent packages with locale-data until we switch to polyfils. Don’t lint these files with our rules.
2021-06-15 08:56:03 -04: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
Michael "Z" Goddard
c713d02ee1
Update to webpack 4 2018-05-07 14:38:02 -04:00
chrisgarrity
4a9cdc7f4a L10n packaging (#1)
* Initial version of scratch-l10n package
2017-09-21 11:54:41 -04:00