A Chrome extension providing real-time translation powered by OpenAI's Whisper model using Transformers.js locally in the browser.
In the project directory, you can run the following scripts:
Development Mode: This command runs your extension in development mode. It will launch a new browser instance with your extension loaded. The page will automatically reload whenever you make changes to your code, allowing for a smooth development experience.
npm run devProduction Preview: This command runs your extension in production mode. It will launch a new browser instance with your extension loaded, simulating the environment and behavior of your extension as it will appear once published.
npm run startBuild for Production: This command builds your extension for production. It optimizes and bundles your extension, preparing it for deployment to the target browser's store.
npm run buildCheck the formatting of the project: Runs a formatting check for the whole project using BiomeJs.
npm run formatTo automatically fix formatting errors run:
npm run format:writeRun linter for the whole project: Runs the BiomeJs linter check for the whole project.
npm run lintTo fix automatically fixable lint errors run:
npm run lint:writeRun project unit tests: Runs all jest unit tests in the project.
npm run test