This tool assists translators on copying "Scratch Addons extension update" notification to the website as a version highlights.
- Pick the version and the language.
- Compare both notifications. The first one would be the English and the second one would be the translated one.
- On Transifex, translate with the reference of both notifications, by copying the translated paragraph so it takes the same form as the original string on Transifex.
- Switch to other version and start over.
- Open the main repository.
- Using the tag, switch to the target version that you want to add.
- Open the website repository.
- Inside
src/pages
, copy one of the version that is already made. - Replace the
_locales
folder that is already present with the_locales
folder from main repository. - Replace all the version numbers (e.g.
v1.33.2
) to the correct version (e.g.v1.0.0
). - Copy the
showBanner
function fromcontent-scripts/cs.js
and put it inside thenotifBanner.js
. - Replace
export const showBanner = () => {
withexport const showBanner = chrome => {
. - Replace
style: {...}
inside thenotifInnerBody
(see the first 10 lines ofnotifBanner.js
) withstyle: notifStyle
. - Replace
document.body.appendChild(notifOuterBody)
withreturn notifInnerBody
.
All commands are run from the root of the project, from a terminal:
Command | Action |
---|---|
npm install |
Installs dependencies |
npm run dev |
Starts local dev server at localhost:3000 |
npm run build |
Build your production site to ./dist/ |
npm run preview |
Preview your build locally, before deploying |
npm run astro ... |
Run CLI commands like astro add , astro check |
npm run astro -- --help |
Get help using the Astro CLI |
This project is licensed under the terms of GNU General Public License v3.