scratch-l10n 3.18.357 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/PULL_REQUEST_TEMPLATE.md +4 -4
- package/.nvmrc +1 -1
- package/CHANGELOG.md +29 -0
- package/dist/l10n.js +237 -380
- package/dist/l10n.js.map +1 -1
- package/dist/localeData.js +225 -369
- package/dist/localeData.js.map +1 -1
- package/dist/supportedLocales.js +139 -289
- package/dist/supportedLocales.js.map +1 -1
- package/lib/progress-logger.mjs +42 -0
- package/lib/transifex.js +70 -22
- package/package.json +15 -15
- package/scripts/{build-data.js → build-data.mjs} +3 -3
- package/scripts/{tx-pull-editor.js → tx-pull-editor.mjs} +3 -3
- package/scripts/{tx-pull-www.js → tx-pull-www.mjs} +42 -26
- package/scripts/{tx-push-help.js → tx-push-help.mjs} +3 -2
- package/scripts/{validate-extension-inputs.js → validate-extension-inputs.mjs} +2 -2
- package/scripts/{validate-translations.js → validate-translations.mjs} +4 -4
- package/scripts/{validate-www.js → validate-www.mjs} +4 -4
- package/src/index.mjs +3 -0
- package/src/{locale-data.js → locale-data.mjs} +1 -1
- package/src/index.js +0 -3
- /package/lib/{validate.js → validate.mjs} +0 -0
- /package/src/{supported-locales.js → supported-locales.mjs} +0 -0
@@ -22,14 +22,14 @@ There are two situations in which we create manual PRs to update translations:
|
|
22
22
|
|
23
23
|
### Adding a language
|
24
24
|
|
25
|
-
* [ ] Edit `src/supported-locales.
|
25
|
+
* [ ] Edit `src/supported-locales.mjs`:
|
26
26
|
* [ ] Add entry for the language in the `locales` const
|
27
27
|
* [ ] Check if language is right-to-left. If so:
|
28
28
|
* Add entry in `rtlLocales`
|
29
29
|
|
30
30
|
* [ ] Check if the new language uses a country code
|
31
31
|
* Check [https://www.transifex.com/explore/languages](https://www.transifex.com/explore/languages). If the language has a country code:
|
32
|
-
* [ ] Edit `src/supported-locales.
|
32
|
+
* [ ] Edit `src/supported-locales.mjs`:
|
33
33
|
* Add new entry to `localeMap`. Format is `'<W3C HTML browser locale string>': '<Transifex ICU locale string>'`
|
34
34
|
* [ ] Edit `.tx/config`:
|
35
35
|
* Add to the `lang_map` list. Format is `<Transifex ICU locale string>:<W3C HTML browser locale string>`
|
@@ -42,14 +42,14 @@ There are two situations in which we create manual PRs to update translations:
|
|
42
42
|
* [ ] Check if locale is in `react-intl`
|
43
43
|
* Look in [https://unpkg.com/react-intl/locale-data/](https://unpkg.com/react-intl/locale-data/)
|
44
44
|
* If not in `react-intl`:
|
45
|
-
* [ ] Edit `src/supported-locales.
|
45
|
+
* [ ] Edit `src/supported-locales.mjs`:
|
46
46
|
* In `customLocales`, add entry with parent set to a `react-intl` locale
|
47
47
|
* [ ] Edit `src/index.js`:
|
48
48
|
* In `localeData`, add entry for parent locale
|
49
49
|
|
50
50
|
* [ ] Update translations per the "Updating translations" section above
|
51
51
|
* [ ] Confirm that we see changes to:
|
52
|
-
* [ ] `src/supported-locales.
|
52
|
+
* [ ] `src/supported-locales.mjs`
|
53
53
|
* [ ] `src/index.js`
|
54
54
|
* [ ] `.tx/config` (if language needed a new locale)
|
55
55
|
* [ ] Multiple files like `editor/<resource>/<lang code>.json`
|
package/.nvmrc
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
20
|
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,35 @@
|
|
3
3
|
All notable changes to this project will be documented in this file. See
|
4
4
|
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
+
## [4.0.1](https://github.com/scratchfoundation/scratch-l10n/compare/v4.0.0...v4.0.1) (2024-10-30)
|
7
|
+
|
8
|
+
|
9
|
+
### Bug Fixes
|
10
|
+
|
11
|
+
* require is not allowed in mjs files ([fb47cd2](https://github.com/scratchfoundation/scratch-l10n/commit/fb47cd2c566ad4020953bd88d754eceb6b120a8f))
|
12
|
+
|
13
|
+
# [4.0.0](https://github.com/scratchfoundation/scratch-l10n/compare/v3.18.357...v4.0.0) (2024-10-30)
|
14
|
+
|
15
|
+
|
16
|
+
### Bug Fixes
|
17
|
+
|
18
|
+
* fix mkdirp import ([cfd31fd](https://github.com/scratchfoundation/scratch-l10n/commit/cfd31fda7157c287bf3ca21688afefcb90bae2a0))
|
19
|
+
* handle paginated results more carefully ([2930b8a](https://github.com/scratchfoundation/scratch-l10n/commit/2930b8a02b7fd73f4e200aba16ea4f76a44b7f27))
|
20
|
+
* only retry the actual download ([905f004](https://github.com/scratchfoundation/scratch-l10n/commit/905f004b1511b4b399735e9659bca0538f297a43))
|
21
|
+
|
22
|
+
|
23
|
+
* refactor!: stop using babel-node ([44c4b97](https://github.com/scratchfoundation/scratch-l10n/commit/44c4b975819dafc8f598227f1297da8b8946aa05))
|
24
|
+
|
25
|
+
|
26
|
+
### Features
|
27
|
+
|
28
|
+
* report progress during tx-pull-www ([b501bdd](https://github.com/scratchfoundation/scratch-l10n/commit/b501bddc6bcfabf9f4d8114b28c21aef4c9119c9))
|
29
|
+
|
30
|
+
|
31
|
+
### BREAKING CHANGES
|
32
|
+
|
33
|
+
* Some files have been renamed from '.js' to '.mjs'
|
34
|
+
|
6
35
|
## [3.18.357](https://github.com/scratchfoundation/scratch-l10n/compare/v3.18.356...v3.18.357) (2024-10-30)
|
7
36
|
|
8
37
|
|