From f9515a69ca996fcb002f7f3d47b7dc9f23df6b07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?andr=C3=A9s=20gonz=C3=A1lez?= Date: Fri, 9 Oct 2026 14:12:17 +0200 Subject: [PATCH] :bug: Translate the This file tab texts in the libraries modal (#12204) * :bug: Fix inner shadow covering the shape in the SVG renderer (#12141) * :bug: Fix inner shadow covering the shape in the SVG renderer The svg filter components moved to the `*` syntax (#9448), but filter-entry* still built their props as a raw JS object with kebab-case keys. Raw JS props skip the kebab to camel conversion, so the components read nil for filterId and filterIn, and no filter primitive got its result or in2. With the chain broken, an inner shadow was blended over the empty flood instead of the shape, hiding the fill (and a board's children) under the shadow color. Exports using these filters broke the same way. Pass the props in camelCase. Closes #11967 AI-assisted-by: claude-opus-5-5 * :recycle: Build filter entry props with mf/props Use mf/props instead of a raw JS object so the props keep the kebab-case keys used across the codebase. The macro converts them to camelCase at compile time, so there is no runtime cost, and the comment about the manual conversion is no longer needed. AI-assisted-by: claude-opus-5-5 * :bug: Translate the This file tab texts in the libraries modal The tab name, the section title and the empty state button of the This file tab were hardcoded in English. Add translation keys with English and Spanish texts. Closes #12178 AI-assisted-by: claude-opus-5-5 --------- Co-authored-by: Eva Marco --- frontend/src/app/main/ui/workspace/libraries.cljs | 6 +++--- frontend/translations/en.po | 12 ++++++++++++ frontend/translations/es.po | 12 ++++++++++++ 3 files changed, 27 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/main/ui/workspace/libraries.cljs b/frontend/src/app/main/ui/workspace/libraries.cljs index 71c7f32405..7ed01913be 100644 --- a/frontend/src/app/main/ui/workspace/libraries.cljs +++ b/frontend/src/app/main/ui/workspace/libraries.cljs @@ -819,7 +819,7 @@ [:div {:class (stl/css :lib-section)} [:> title-bar* {:collapsable false - :title "ASSETS IN THIS FILE" + :title (tr "workspace.libraries.assets-in-this-file") :class (stl/css :title-spacing-lib)}] [:div {:class (stl/css :section-list)} [:div {:class (stl/css :section-list-publish)} @@ -916,7 +916,7 @@ (tr "workspace.libraries.empty.no-connected-libraries")] [:button {:class (stl/css :go-to-shared-button) :on-click go-to-shared} - "Add a shared library"]])]]])) + (tr "workspace.libraries.add-shared-library")]])]]])) (defn- extract-assets @@ -1153,7 +1153,7 @@ tabs (mf/with-memo [token-lib-sync?] (if token-lib-sync? - [{:label "This file" + [{:label (tr "workspace.libraries.this-file") :id "file"} {:label (tr "workspace.libraries.libraries") :id "libraries"} diff --git a/frontend/translations/en.po b/frontend/translations/en.po index a7a3cd7606..eb04aa1bf8 100644 --- a/frontend/translations/en.po +++ b/frontend/translations/en.po @@ -6721,6 +6721,14 @@ msgstr "Locate" msgid "workspace.layout-grid.editor.top-bar.locate.tooltip" msgstr "Locate grid layout" +#: src/app/main/ui/workspace/libraries.cljs:898 +msgid "workspace.libraries.add-shared-library" +msgstr "Add a shared library" + +#: src/app/main/ui/workspace/libraries.cljs:801 +msgid "workspace.libraries.assets-in-this-file" +msgstr "ASSETS IN THIS FILE" + #: src/app/main/ui/workspace/libraries.cljs:126, src/app/main/ui/workspace/libraries.cljs:155, src/app/main/ui/workspace/libraries.cljs:199 msgid "workspace.libraries.colors" msgid_plural "workspace.libraries.colors" @@ -6875,6 +6883,10 @@ msgstr "Unlink all assets" msgid "workspace.libraries.text.multiple-token-tooltip" msgstr "Detach all tokens" +#: src/app/main/ui/workspace/libraries.cljs:1136 +msgid "workspace.libraries.this-file" +msgstr "This file" + #: src/app/main/ui/workspace/libraries.cljs:167, src/app/main/ui/workspace/libraries.cljs:211 msgid "workspace.libraries.token-sets" msgid_plural "workspace.libraries.token-sets" diff --git a/frontend/translations/es.po b/frontend/translations/es.po index 1c37a22c64..59bc353113 100644 --- a/frontend/translations/es.po +++ b/frontend/translations/es.po @@ -6784,6 +6784,14 @@ msgstr "Mostrar" msgid "workspace.layout-grid.editor.top-bar.locate.tooltip" msgstr "Mostrar grid layout" +#: src/app/main/ui/workspace/libraries.cljs:898 +msgid "workspace.libraries.add-shared-library" +msgstr "AƱadir una biblioteca compartida" + +#: src/app/main/ui/workspace/libraries.cljs:801 +msgid "workspace.libraries.assets-in-this-file" +msgstr "RECURSOS EN ESTE ARCHIVO" + #: src/app/main/ui/workspace/libraries.cljs:126, src/app/main/ui/workspace/libraries.cljs:155, src/app/main/ui/workspace/libraries.cljs:199 msgid "workspace.libraries.colors" msgid_plural "workspace.libraries.colors" @@ -6938,6 +6946,10 @@ msgstr "Desvincular todos los recursos" msgid "workspace.libraries.text.multiple-token-tooltip" msgstr "Desvincular todos los tokens" +#: src/app/main/ui/workspace/libraries.cljs:1136 +msgid "workspace.libraries.this-file" +msgstr "Este archivo" + #: src/app/main/ui/workspace/libraries.cljs:167, src/app/main/ui/workspace/libraries.cljs:211 msgid "workspace.libraries.token-sets" msgid_plural "workspace.libraries.token-sets"