Skip to content

Add German/English language toggle (i18n)#1

Open
koen01 wants to merge 3 commits intojkef80:mainfrom
koen01:main
Open

Add German/English language toggle (i18n)#1
koen01 wants to merge 3 commits intojkef80:mainfrom
koen01:main

Conversation

@koen01
Copy link
Copy Markdown

@koen01 koen01 commented Feb 27, 2026

Introduce lightweight internationalization without external dependencies. The UI auto-detects the browser language (falling back to English), and a DE/EN toggle in the header lets users switch manually. The choice is persisted in localStorage.

  • New static/i18n.js with translation dictionaries and t() helper
  • Static HTML elements use data-i18n attributes, dynamic JS strings use t()
  • Language switcher styled to match existing badge/pill aesthetic
  • /api/ui/help accepts ?lang=en for English help text

koen01 and others added 3 commits February 27, 2026 23:17
Introduce lightweight internationalization without external dependencies.
The UI auto-detects the browser language (falling back to English), and a
DE/EN toggle in the header lets users switch manually. The choice is
persisted in localStorage.

- New static/i18n.js with translation dictionaries and t() helper
- Static HTML elements use data-i18n attributes, dynamic JS strings use t()
- Language switcher styled to match existing badge/pill aesthetic
- /api/ui/help accepts ?lang=en for English help text

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Bridge between Spoolman spool manager and CFS slot tracking:
- Link Spoolman spools to CFS slots via modal dropdown (sorted by material/color match)
- Import remaining_weight on link, sync consumption back on print finalize and manual allocation
- Sync measured weight on "Übernehmen", auto-unlink on roll change
- All Spoolman calls are fire-and-forget — local tracking is never blocked
- Set spoolman_url in config.json to enable; hidden when unconfigured

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant