Commit Graph

12 Commits

Author SHA1 Message Date
Andy O'Neill
216beb02da fix: update prepublish script to use correct path separator 2023-07-24 13:04:42 -04:00
Christopher Willis-Ford
7702438eec refactor: download micro:bit HEX in prepublish, not install 2023-06-08 10:45:49 -07:00
Christopher Willis-Ford
9695200d8f build: download and extract micro:bit hex during npm install 2023-06-05 07:49:09 -07:00
chrisgarrity
7a79ecc1ad Use scratch-ll10n for extracting strings 2017-11-06 15:40:53 -05:00
chrisgarrity
0dc548326e Import translations from scratch-l10n package
* removed anything that was made redundant by scratch-l10n.
* updated a string that wasn’t following conventions
* added .tx/config so developers can start updating Transifex when there are new strings
2017-10-13 17:33:26 -04:00
chrisgarrity
c8b068b2f1 updating string ids to follow convention (#700)
Changed existing string ids to use the convention `<repo>.<component>.<identifier>`
2017-10-06 12:51:51 -04:00
chrisgarrity
0fe9a7ba45 localeData cleanup
move all locale data (react-intl/locale-data and gui messages) into locale.js. This also makes switching to an external node package easier because the package just needs to export the same thing as locale.js.
2017-07-21 13:02:49 -04:00
chrisgarrity
af69737590 Add language selection widget to menubar
Added language-selector component and container. Replaced lib/intl.jsx with reducers/intl.js and added updateIntl to handle language changes.

Moved languages.json into src
2017-07-19 12:19:29 -04:00
chrisgarrity
caa3f7e343 Documentation 2017-07-18 09:47:59 -04:00
chrisgarrity
0d4fcf1165 Generate messages json from available translations
Generate `locale/messages.json` from available languages in `translations`.  If there are no translations for a given language (from `languages.json`) it just skips it, react-intl will use the default english strings.

Just using English, French and Spanish for testing right now.
2017-07-18 09:47:58 -04:00
chrisgarrity
ba53b1c720 Parameterize script
Making the script easier to reuse later.
2017-07-17 09:16:35 -04:00
chrisgarrity
8817111063 Generate en.json from translation messages
Using babel-plugin-react intl to extract messages from sources that use react-intl. It creates one file per component, that’s not ideal for translators.

Transifex supports several different json formats. We picked the chrome i18n json format because it includes the ‘description’ and displays that to translators as instructions in the transifex UI.
2017-07-17 09:16:35 -04:00