From 66c26191d82f4902f14a68e7c1ecde6fc33bb796 Mon Sep 17 00:00:00 2001 From: paulbettner Date: Sun, 29 Mar 2026 18:05:49 -0500 Subject: [PATCH] Prevent browser translation from mutating the app shell --- index.html | 3 ++- src/main.tsx | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 42eed15..d31b83f 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,8 @@ - + + CLI Proxy API Management Center diff --git a/src/main.tsx b/src/main.tsx index 530bfc6..e0bb413 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -5,6 +5,10 @@ import { INLINE_LOGO_JPEG } from '@/assets/logoInline'; import App from './App.tsx'; document.title = 'CLI Proxy API Management Center'; +document.documentElement.setAttribute('translate', 'no'); +document.documentElement.classList.add('notranslate'); +document.body.classList.add('notranslate'); +document.body.setAttribute('translate', 'no'); const faviconEl = document.querySelector('link[rel="icon"]'); if (faviconEl) {