build web with optional ui languages

This commit is contained in:
proddy
2026-06-20 13:10:56 +02:00
parent 39b02591d9
commit f2eb1b2e7f
3 changed files with 71 additions and 3 deletions

View File

@@ -1 +1,13 @@
/// <reference types="vite/client" />
interface ImportMetaEnv {
// Optional comma-separated allow-list of locales to ship (e.g. "en,de,nl").
// Unset => all locales are bundled and embedded. `en` is always kept as the
// fallback. Consumed by App.tsx (UI language list) and progmem-generator.js
// (which locale chunks get embedded into firmware flash).
readonly VITE_APP_LOCALES?: string;
}
interface ImportMeta {
readonly env: ImportMetaEnv;
}