Commit graph

31 commits

Author SHA1 Message Date
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
Christopher Willis-Ford
b11c0fe2ea add қазақша (Kazakh) 2021-06-11 14:06:25 -07:00
seotts
ac31c932e8 add 6 new languages (xh, tn, qu, or, nso, af) 2021-01-25 15:24:07 -05:00
Chris Garrity
fb6c65ca42 Adding Mongolian (mn) 2020-06-15 11:28:17 -04:00
Chris Garrity
3245f185a3 Add armenian and bump minor version 2020-05-11 14:23:22 -04:00
Chris Garrity
8d67ba322f Add Kurdish to supported languages. 2020-03-24 15:57:43 -04:00
Chris Garrity
12f343ed75 Add swahili 2019-10-07 17:46:11 -04:00
Chris Garrity
e3022138ba Add Georgian
- [ ] add ‘ka’ to supported languages
- [ ] add ‘ka’ to `locale-data` from `react-intl`
- [ ] bump minor version to indicate new language
- [ ] sync translations for new langage
2019-07-24 09:14:38 -04:00
Chris Garrity
edcc8dabc5 Add Khmer language
- [ ] Add Khmer (km) to the menu as ‘ភាសាខ្មែរ’ (alphabetizesd as ‘phi…’ from wikipedia: natively ភាសាខ្មែរ phiəsaa khmae Khmer pronunciation: [pʰiə.ˈsaː kʰmae])
- [ ] import km locale-data
- [ ] Update translations for editor and www
2019-07-23 15:40:14 -04:00
Chris Garrity
10e9f99243 Removed commented out code 2019-05-09 14:59:05 -04:00
Chris Garrity
2949bb326b Add Rapa Nui and Uzbek 2019-05-09 10:48:02 -04:00
chrisgarrity
bbbff8248a
Merge pull request #77 from chrisgarrity/add-belarusian
Add Belarusian
2019-04-17 15:48:38 -04:00
chrisgarrity
f83d8fd17c Add Belarusian 2019-04-17 13:51:08 -04:00
chrisgarrity
ec799e327a import māori locale-data
as of react-intl 2.8.0 māori (mi) locale data is included in `react-intl/locale-data`. Use that instead of a custom locale.

Also remove unnecessary `es-419` custom locale, `es-419` is already included in the default `es.js` locale-data.
2019-04-17 12:11:43 -04:00
Ben Wheeler
1a3e6245e0 add persian and central kurdish 2019-02-06 17:09:23 -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
6c56414704 Add react-intl locale data for new languages. 2019-01-17 13:58:03 -05:00
chrisgarrity
1850e094a5 Pull out languages not yet reviewed 2018-12-20 11:40:44 -05:00
chrisgarrity
08a4ee0b60 Add isiZulu
It was completed earlier this month.
2018-12-13 09:07:56 -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
f4e938ab96 Add Croatian 2018-11-15 08:36:52 -05:00
chrisgarrity
329eb0eacd update supported languages and sync 2018-10-10 17:47:46 -04:00
Ben Wheeler
f236ad61e6 Added Amharic and Basque/Euskara, Transifex translation updates 2018-09-18 16:58:25 -04:00
chrisgarrity
0fa777e234 Add RTL support
- Maintain a list of RTL languages supported
- add `isRtl` method to check if a locale is RTL
- add icelandic to the menu and locale data.
2018-08-23 10:01:59 -04:00
chrisgarrity
a9813026e4 Update supported languages
Add newly completely languages to the menu:
* Azerbaijani - was already importing locale as parent of Abkhaz, changed comment
* Hungarian, Pollish, Russian,
2018-07-19 09:31:11 -04:00
chrisgarrity
f0a9d33465 update supported languages
Additional languages for the preview menu
2018-07-12 13:43:00 -04:00
chrisgarrity
156ad3659d Update supported languages
Adding languages that are fully translated
2018-06-20 09:00:29 -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
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
4a9cdc7f4a L10n packaging (#1)
* Initial version of scratch-l10n package
2017-09-21 11:54:41 -04:00