From 4f654dd95daeb8e21c7977f6f4762fdac392b2d3 Mon Sep 17 00:00:00 2001 From: Rodrigo Rodriguez Date: Sat, 14 Feb 2026 20:05:28 +0000 Subject: [PATCH] fix(i18n): Invalidate cache to fix placeholder translations - 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 --- ui/suite/js/i18n.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/suite/js/i18n.js b/ui/suite/js/i18n.js index 8c17bb7..2a31ad3 100644 --- a/ui/suite/js/i18n.js +++ b/ui/suite/js/i18n.js @@ -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...",