
* #264 i18n dropdown ui * #264 improve i18n configuration to use hardcoded english as default * #264 sync language english to crowdin when merged to main --------- Co-authored-by: neil <neil@neils-MacBook-Pro.local>
2 KiB
@tea/desktop
Desktop app of tea for installing packages/softwares
More interesting and possibly updated documentations are at this NOTION page. It is ideal to review it also, its more updated.
Developing
Once you've created a project and installed dependencies with npm install
(or pnpm install
or yarn
), start a development server:
# use if you need interaction with the rust handlers
pnpm dev
Building
To create a production version of your app:
pnpm run build
You can preview the production build with npm run preview
.
To deploy your app, you may need to install an adapter for your target environment.
Testing
pnpm playwright install
pnpm test
i18n
Default locale is english
it is defined in src/libs/translations/translations.json
. Include all new keys there then this will automatically sync to crowdin once merged to main
.
Data from crowdin our translation app/community will only be loaded when env var SYNC_I18N
exists. Currently only configured on top of the GHA CI/CD workflows.
Intuition Building Links
A minimal project template for Electron and SvelteKit configured with adapter-static.
Screenshot
Commands
pnpm dev
: Runs SvelteKit in dev modepnpm preview
: Runs SvelteKit in production modepnpm electron
: Runs SvelteKit with electron in dev modepnpm build
: Runs SvelteKit compilerpnpm dev:package
: Creates an Electron package (you can inspect the contents)pnpm package
: Creates a distributable Electron package