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 @@ -68,7 +68,7 @@ Open **http://localhost:8001** and create your account.
- **Cover art from multiple sources.** Automatic search across AbeBooks, Open Library, Amazon, and Hardcover — plus manual upload or URL paste.
- **Full REST API.** OpenAPI-documented backend you can script against — build your own frontend, connect home automation, or pipe data into your own tools.
- **Lightweight.** Two Docker containers, one SQLite database.
- **Bilingual UI.** English and German with a localization framework ready for more languages.
- **Multi-language UI.** English, German, Spanish, French, and Chinese (Simplified) — with a localization framework ready for more languages.

---

Expand Down
2 changes: 1 addition & 1 deletion docs/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ LibrisLog is a **multi-user book tracking web application** designed for readers
- **Cover Management**: Automatic cover image scraping from multiple sources with manual override
- **Data Portability**: Export/import library as JSON or CSV. Full backup and restore functionality
- **REST API**: Full API with OpenAPI documentation for programmatic access
- **Multilingual**: English and German UI support
- **Multilingual**: English, German, Spanish, French, and Chinese (Simplified) UI support
- **Themes**: Light, dark, and custom DaisyUI themes with persistent preferences

## Technology Stack
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ All configuration is done via environment variables in a `.env` file at the proj

| Variable | Description | Default |
|----------|-------------|---------|
| `PUBLIC_DEFAULT_LOCALE` | Default UI language (`en` or `de`) | `en` |
| `PUBLIC_DEFAULT_LOCALE` | Default UI language (`en`, `de`, `zh`, `es`, or `fr`) | `en` |

## Import Limits

Expand Down
2 changes: 1 addition & 1 deletion docs/guide/developer-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ When building, you can override these arguments:
|----------|-------------|---------|
| `APP_VERSION` | Application version string | `v0.0.0-dev` |
| `GIT_SHA` | Git commit hash for version display | `unknown` |
| `PUBLIC_DEFAULT_LOCALE` | Default UI language (`en` or `de`) | `en` |
| `PUBLIC_DEFAULT_LOCALE` | Default UI language (`en`, `de`, `zh`, `es`, or `fr`) | `en` |

Example:

Expand Down
5 changes: 4 additions & 1 deletion frontend/src/lib/i18n/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { addMessages, init, locale, register, waitLocale, _ } from 'svelte-i18n';
import { api } from '$lib/api';

export const SUPPORTED_LOCALES = ['en', 'de'] as const;
export const SUPPORTED_LOCALES = ['en', 'de', 'zh', 'es', 'fr'] as const;
export type AppLocale = (typeof SUPPORTED_LOCALES)[number];

const DEFAULT_LOCALE: AppLocale = 'en';
Expand All @@ -12,6 +12,9 @@ const configuredDefaultLocale: AppLocale = isSupportedLocale(envLocale) ? envLoc

register('en', () => import('./locales/en.json'));
register('de', () => import('./locales/de.json'));
register('zh', () => import('./locales/zh.json'));
register('es', () => import('./locales/es.json'));
register('fr', () => import('./locales/fr.json'));

addMessages('en', {});

Expand Down
5 changes: 4 additions & 1 deletion frontend/src/lib/i18n/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,10 @@
},
"languages": {
"en": "Englisch",
"de": "Deutsch"
"de": "Deutsch",
"zh": "Chinesisch",
"es": "Spanisch",
"fr": "Französisch"
},
"auth": {
"login": "Anmelden",
Expand Down
5 changes: 4 additions & 1 deletion frontend/src/lib/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,10 @@
},
"languages": {
"en": "English",
"de": "German"
"de": "German",
"zh": "Chinese",
"es": "Spanish",
"fr": "French"
},
"auth": {
"login": "Login",
Expand Down
Loading