Set up react-i18next with locale files auto-loaded per area (Vite glob), a compact LanguageSwitcher, and language as a server-persisted preference (preferences.language) mirrored to localStorage. On first login the default UI language is guessed from the Google-reported locale (hu/en/de, else English). vite-env.d.ts types the build-time env.
8 lines
542 B
TypeScript
8 lines
542 B
TypeScript
// Build info baked into the SPA at build time (Vite inlines VITE_*-prefixed env).
|
|
// Injected via Docker build-args (see Dockerfile); falls back to "dev" for un-stamped builds.
|
|
export const FRONTEND_VERSION = import.meta.env.VITE_APP_VERSION || "dev";
|
|
export const FRONTEND_SHA = import.meta.env.VITE_GIT_SHA || "unknown";
|
|
export const FRONTEND_BUILD_DATE = import.meta.env.VITE_BUILD_DATE || "";
|
|
|
|
// Key for the "last version the user has seen release notes for" (drives the banner).
|
|
export const SEEN_VERSION_KEY = "siftlode.seenVersion";
|