Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Run it on a Raspberry Pi, a home server, or a $5 VPS. Your data stays yours.
- **Expenses & reports** — See what your vehicles actually cost you.
- **Dashboard** — A fleet-wide overview with widgets you can rearrange to your liking.
- **Auth & feature toggles** — Username/password login with sessions, and the ability to turn off features you don't need.
- **10 languages** — English, Hindi, Spanish, French, German, Italian, Arabic, Romanian, Hungarian, and Finnish.
- **11 languages** — English, Hindi, Spanish, French, German, Italian, Arabic, Romanian, Hungarian, Finnish, and Russian.

## Tech stack

Expand Down
6 changes: 3 additions & 3 deletions docs/i18n.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ Tracktor uses Paraglide (inlang) with the Svelte 5 addon for runtime-localized U

## Adding a new language

1. Add the language in your Paraglide source/messages `i18n/messages` and regenerate the compiled outputs under `src/lib/paraglide/messages/`.
2. Ensure the new language code is included in Paraglide's generated `locales` array (in `src/lib/paraglide/runtime.js`).
3. Optionally add a human-readable label in `src/lib/components/feature/settings/SettingsForm.svelte` in the `localeLabels` map.
1. Add a message file for the language in `i18n/messages/<locale>.json`, using `en.json` as the reference for keys.
2. Add the locale code to the `locales` array in `i18n/project.inlang/settings.json`. The Paraglide vite plugin regenerates `src/lib/paraglide/` (including the `locales` array) on the next `vite dev`/`vite build`.
3. Optionally add a human-readable label in the `localeLabels` map in `src/lib/helper/settings-form.helper.ts`.
4. Provide translations for your messages via inlang tooling (VS Code Sherlock, Fink, etc.).

## Notes
Expand Down
Loading
Loading