Thank you for your interest in contributing! 🎉
Click the "Fork" button at the top right of this page to create your own copy.
git clone https://github.com/your-username/translation-widget.git
cd translation-widgetUse a descriptive branch name:
git checkout -b feature/your-feature-name- Follow the existing code style.
- Add or update tests as needed.
- Update documentation if your changes affect usage.
git add .
git commit -m "Describe your changes"
git push origin feature/your-feature-nameGo to your fork on GitHub and click "Compare & pull request".
- Use clear, descriptive variable and function names.
- Write concise and meaningful commit messages.
- Keep pull requests focused and minimal.
- Use the GitHub Issues tab.
- Provide as much detail as possible (steps to reproduce, screenshots, etc.).
- Be respectful and inclusive.
- Constructive feedback is welcome!
-
Install dependencies:
npm install
or
yarn install
-
Add Env Create a
.envfile in the root directory with the following variables:# Required: Your JigsawStack Public API key VITE_TRANSLATION_WIDGET_PUBLIC_KEY=your_api_key_hereYou can get your Public API key from the JigsawStack Dashboard.
-
Build the project:
npm run build
or
yarn build
This creates the
dist/directory with the compiled library files that the demo HTML requires. -
Start the development server:
npm run dev
or
yarn dev
-
Open your browser and visit:
http://localhost:5173(or the port specified in your project)