mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-04 06:54:28 +00:00
chore(i18n): update paraglide-js to 2.25.0 and stop checking in generated code (#386)
- Upgrade @inlang/paraglide-js to 2.25.0 in root devDependencies - Untrack 2,700+ generated paraglide files from git index - Ignore packages/webui/paraglide in .gitignore and .dockerignore - Remove --no-emit-git-ignore flag from i18n:compile and i18n:watch - Chain bun run i18n:compile into build and build-npm scripts - Add i18n compile step in Dockerfile builder stage - Add i18n compile step in CI workflows (.github/workflows/ci.yaml, release-npm.yaml) - Update README.md and README_CN.md with local setup instructions for i18n compilation
This commit is contained in:
@@ -314,11 +314,17 @@ To set up Shumai locally for development:
|
||||
```
|
||||
2. Start the `pgvector` database container (as described in **Option 2, Step 1**).
|
||||
3. Create a `.env` file at the root of the workspace using the configuration from **Option 2, Step 5**.
|
||||
4. Apply the database schema migrations:
|
||||
4. Generate i18n translation files:
|
||||
```bash
|
||||
bun run i18n:compile
|
||||
```
|
||||
> [!TIP]
|
||||
> During frontend development, you can run `bun run i18n:watch` in a separate terminal to automatically recompile translation files whenever you edit strings in `packages/webui/messages/`.
|
||||
5. Apply the database schema migrations:
|
||||
```bash
|
||||
bun run db:migrate
|
||||
```
|
||||
5. Start the local development server:
|
||||
6. Start the local development server:
|
||||
```bash
|
||||
bun run dev
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user