From 5211ec90649cfa707eacc9c22eacfba643923817 Mon Sep 17 00:00:00 2001 From: Pascal Linxweiler Date: Mon, 5 Oct 2026 20:26:56 +0200 Subject: [PATCH] Fix hydration mismatch in progress bars on non-English browsers Base UI formats aria-valuetext with the runtime locale (server: "50%", German browser: "50 %"). Pin the Progress wrapper to en-US. Co-Authored-By: Claude Opus 5.5 --- src/components/ui/progress.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/ui/progress.tsx b/src/components/ui/progress.tsx index 7f3ee7d..700a70f 100644 --- a/src/components/ui/progress.tsx +++ b/src/components/ui/progress.tsx @@ -7,11 +7,15 @@ function Progress({ className, children, value, + // Fixed locale: the default (runtime locale) formats aria-valuetext differently on the server + // and in e.g. a German browser ("50%" vs "50 %"), which breaks hydration. + locale = "en-US", ...props }: ProgressPrimitive.Root.Props) { return (