mirror of
https://github.com/penpot/penpot.git
synced 2026-10-29 05:50:35 +00:00
🐛 Translate the This file tab texts in the libraries modal (#12204)
* 🐛 Fix inner shadow covering the shape in the SVG renderer (#12141) * 🐛 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 * ♻️ 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 * 🐛 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 <eva.marco@kaleidos.net>
This commit is contained in:
parent
92bcc0e635
commit
f9515a69ca
@ -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"}
|
||||
|
||||
@ -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"
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user