mirror of
https://github.com/penpot/penpot.git
synced 2025-02-13 10:38:13 -05:00
🌐 Image popup i18n
Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io>
This commit is contained in:
parent
1e44747acf
commit
8da93f90b6
3 changed files with 16 additions and 6 deletions
|
@ -135,6 +135,11 @@
|
|||
"element.page-measures" "Page settings"
|
||||
"element.page-grid-options" "Grid settings"
|
||||
|
||||
"image.new" "New image"
|
||||
"image.select" "Select from library"
|
||||
"image.upload" "Upload file"
|
||||
"image.import-library" "Import image from library"
|
||||
|
||||
"auth.email-or-username" "Email or Username"
|
||||
"auth.password" "Password"
|
||||
"auth.signin" "Sign in"
|
||||
|
|
|
@ -135,6 +135,11 @@
|
|||
"element.page-measures" "Paramètres de la page"
|
||||
"element.page-grid-options" "Paramètres de la grille"
|
||||
|
||||
"image.new" "Nouvelle image"
|
||||
"image.select" "Choisir depuis une librairie"
|
||||
"image.upload" "Envoyer un fichier"
|
||||
"image.import-library" "Importer une image depuis une librairie"
|
||||
|
||||
"auth.email-or-username" "adresse email ou nom d'utilisateur"
|
||||
"auth.password" "Mot de passe"
|
||||
"auth.signin" "Se connecter"
|
||||
|
|
|
@ -70,16 +70,16 @@
|
|||
(dom/prevent-default event)
|
||||
(modal/hide!))]
|
||||
[:div.lightbox-body
|
||||
[:h3 "New image"]
|
||||
[:h3 (tr "image.new")]
|
||||
[:div.row-flex
|
||||
[:div.lightbox-big-btn {:on-click on-select-from-library}
|
||||
[:span.big-svg i/image]
|
||||
[:span.text "Select from library"]]
|
||||
[:span.text (tr "image.select")]]
|
||||
[:div.lightbox-big-btn {:on-click on-upload-click}
|
||||
(if uploading?
|
||||
[:span.big-svg.upload i/loader-pencil]
|
||||
[:span.big-svg.upload i/exit])
|
||||
[:span.text "Upload file"]
|
||||
[:span.text (tr "image.upload")]
|
||||
[:input.upload-image-input
|
||||
{:style {:display "none"}
|
||||
:accept "image/jpeg,image/png"
|
||||
|
@ -142,16 +142,16 @@
|
|||
:fn #(st/emit! (udi/fetch-images id))})
|
||||
|
||||
[:div.lightbox-body.big-lightbox
|
||||
[:h3 "Import image from library"]
|
||||
[:h3 (tr "image.import-library")]
|
||||
[:div.import-img-library
|
||||
[:div.library-actions
|
||||
[:ul.toggle-library
|
||||
[:li.your-images {:class (when own? "current")
|
||||
:on-click #(select-type :own)}
|
||||
"YOUR IMAGES"]
|
||||
(tr "ds.your-images-title")]
|
||||
[:li.standard {:class (when builtin? "current")
|
||||
:on-click #(select-type :builtin)}
|
||||
"IMAGES STORE"]]
|
||||
(tr "ds.store-images-title")]]
|
||||
[:select.input-select {:on-change on-change}
|
||||
(when own?
|
||||
[:option {:value (pr-str nil)} "Storage"])
|
||||
|
|
Loading…
Add table
Reference in a new issue