🚨🚨🚨 This repo is just a dummy 🚨🚨🚨
Submit issues in the
monorepo
or
check the source code here.
This application is using VITE. To learn more about Tolgee, visit https://tolgee.io.
To install dependencies, run:
npm install
To run the app in dev mode with in-context translating mode:
- Create a project on Tolgee Cloud or use self-hosted Tolgee Server.
- Generate an API-KEY
- Copy file
.envto.env.development.local - Set
VITE_APP_TOLGEE_API_KEYto API key obtained in previous step - Run
npm run develop - Have fun
The in-context editor is normally loaded from the CDN as a published @tolgee/web version. To try out local,
unpublished changes to it instead:
cd packages/web && pnpm run build(or thebuild --filter=@tolgee/web...turbo task) to producepackages/web/dist/tolgee-in-context-tools.umd.min.js.- Copy that file into
testapps/react/public/(gitignored, so it never gets committed). - Set
VITE_APP_IN_CONTEXT_URL=/tolgee-in-context-tools.umd.min.jsin.env.development.local. - Run
npm run developas above.
This only takes effect on localhost, 127.0.0.1 or [::1], see isTrustedInContextUrl in
packages/web/src/package/BrowserExtensionPlugin/loadInContextLib.ts.
To build the app for production run:
npm run build
Static website will be generated. To start local server with build app, run:
npm run preview
This repository is automatically re-published from Tolgee JS monorepo.
