20
edits
(Created page with "== How to upload langpacks on Marketplace == === Overview === * Create an account on https://marketplace.firefox.com/developers/ and accept the terms and conditions: https:/...") |
(fix urls) |
||
| Line 16: | Line 16: | ||
==== Validate a langpack ==== | ==== Validate a langpack ==== | ||
$ base64 -w 0 /tmp/langpack.zip | $ base64 -w 0 /tmp/langpack.zip | ||
$ curling -X POST -d '{"upload": {"type": "application/zip", "name": "langpack.zip", "data": "<paste-result-from-previous-line-here>"}}' https:// | $ curling -X POST -d '{"upload": {"type": "application/zip", "name": "langpack.zip", "data": "<paste-result-from-previous-line-here>"}}' https://marketplace.firefox.com/api/v2/apps/validation/ | ||
==== Check the validation result ==== | ==== Check the validation result ==== | ||
$ curling https:// | $ curling https://marketplace.firefox.com/api/v2/apps/validation/<paste-validation-id-from-previous-line-here>/ | ||
==== Create a langpack from the validation result (once validation result says valid=true and processed=true) ==== | ==== Create a langpack from the validation result (once validation result says valid=true and processed=true) ==== | ||
$ curling -X POST -d '{"upload": "<paste-validation-id-from-previous-line-here>"}' https:// | $ curling -X POST -d '{"upload": "<paste-validation-id-from-previous-line-here>"}' https://marketplace.firefox.com/api/v2/langpacks/ | ||
==== Activate the langpack ==== | ==== Activate the langpack ==== | ||
Note: langpack uuid is different from the validation id, even though both are 32-chars hexadecimal strings. | Note: langpack uuid is different from the validation id, even though both are 32-chars hexadecimal strings. | ||
$ curling -X PATCH -d '{"active": true}' https:// | $ curling -X PATCH -d '{"active": true}' https://marketplace.firefox.com/api/v2/langpacks/<paste-langpack-uuid-from-previous-line-here>/ | ||
==== Double-check that the langpack is now active ==== | ==== Double-check that the langpack is now active ==== | ||
$ curling https:// | $ curling https://marketplace.firefox.com/api/v2/langpacks/<paste-langpack-uuid-from-previous-line-here>/ | ||
edits