In Terminal, run: npm install & npx webpack --mode production --config webpack/webpack.config.js
Go to playground/index.html
Update the HTML and config for the feature you wish to test.
Secondary-click on the file and select "Open in Default Browser"
- If you don't have that option, click on Extensions in the left toolbar
- Search for and install "open in browser" by TechER, or an equivalent
- Following any code changes, you will need to re-compile the code and refresh the page.
Now we are using Localise tool here where we keep translations for widget service.
- Add a new message to the component's
en.json
file with default message. For example:
"myNewMessage" : "Default message"
- Run command
API_KEY=<localise-api-key> npm run translate:push
where is<localise-api-key>
your API key which you need for authentication. You can find Localise API key using following instructions given in the link (https://docs.lokalise.com/en/articles/1929556-api-tokens). - Send translations keys to #translation-request Slack channel
- Then translator or developer can go to the Lokalise project and add translations for the needed languages.
- Run command
API_KEY=<localise-api-key> npm run translate:pull
where is<localise-api-key>
is your api key which you need for authentication. - Then updated files with translations should appear in the src/translations directory
Commit and push the change and merge your MR.
For futher information,please follow the link https://sezzle.atlassian.net/wiki/spaces/ME/pages/2887909400/Translation+-+everything+you+need+to+know
- Update CHANGELOG.md
- Update
version
number inpackage.json
- This can also be done using
npm version <update_type>
where update_type options aremajor
,minor
, orpatch
- This can also be done using
npm install
npm publish
- You cannot overwrite previously published versions
- If you accidentally publish, use
npm unpublish @sezzle/[email protected]
to back out the changes within 24 hours.
Follow the instructions in src/sezzle--checkout-button/README.md to install the desired package in https://admin.shopify.com/store/sezzle-dev/themes
- If you don't have direct access to this store, you may be able to access it via Shopify Partners: https://partners.shopify.com/455865/stores?search_value=sezzle-dev.myshopify.com
- If you don't have access via either method, you will need to submit a request to Sezzle Service Desk to be added as a staff member on Shopify Partners.