From cd67dc42c43cebce3670886c8ed928de8854172d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marina=20L=C3=B3pez?= Date: Thu, 26 Mar 2026 09:33:13 +0100 Subject: [PATCH] :bug: Fix dates to avoid show them in english when browser is in auto (#8775) --- CHANGES.md | 1 + frontend/src/app/util/i18n.cljs | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index 710fa230b9..820d8f19a1 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -29,6 +29,7 @@ - Fix id prop on switch component [Taiga #13534](https://tree.taiga.io/project/penpot/issue/13534) - Update copy on penpot update message [Taiga #12924](https://tree.taiga.io/project/penpot/issue/12924) - Fix scroll on library modal [Taiga #13639](https://tree.taiga.io/project/penpot/issue/13639) +- Fix dates to avoid show them in english when browser is in auto [Taiga #13786](https://tree.taiga.io/project/penpot/issue/13786) ## 2.15.0 (Unreleased) diff --git a/frontend/src/app/util/i18n.cljs b/frontend/src/app/util/i18n.cljs index 2f93c48129..9bc5415de8 100644 --- a/frontend/src/app/util/i18n.cljs +++ b/frontend/src/app/util/i18n.cljs @@ -213,6 +213,9 @@ (when (not= pv cv) (ct/set-default-locale cv)))) +;; Initialize date-fns locale on startup, the watch above only fires on changes +(ct/set-default-locale *current-locale*) + ;; We set the real translation function in the common i18n namespace, ;; so that when common code calls (tr ...) it uses this function. (set! app.common.i18n/tr tr)