fix(i18n): Invalidate cache to fix placeholder translations
All checks were successful
BotUI CI / build (push) Successful in 2m55s

- Increment CACHE_VERSION from v1 to v2
- Forces all users to fetch fresh translations from API
- Fixes issue where old cache with placeholders was overriding correct HTML
- Browser cache had stale translations from before i18n embed fix

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Rodrigo Rodriguez 2026-02-14 20:05:28 +00:00
parent 8732738622
commit 4f654dd95d

View file

@ -3,11 +3,12 @@
const DEFAULT_LOCALE = "en";
const STORAGE_KEY = "gb-locale";
const CACHE_VERSION = "v1";
const CACHE_VERSION = "v2";
const CACHE_TTL_MS = 3600000;
// IMPORTANT: Increment CACHE_VERSION when translation structure changes
// to invalidate all user caches and force fresh API fetches
// v2: Invalidated cache to fix placeholder translations after i18n embed fix
const MINIMAL_FALLBACK = {
"label-loading": "Loading...",