0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 23:18:48 -05:00

Translate automatic names of new files and projects

This commit is contained in:
Andrés Moya 2021-05-10 15:39:02 +02:00 committed by Andrey Antukh
parent ecacd47523
commit 384b464f0f
4 changed files with 19 additions and 2 deletions

View file

@ -5,6 +5,7 @@
### :sparkles: New features
- Add option to interactively scale text [Taiga #1527](https://tree.taiga.io/project/penpot/us/1527)
- Translate automatic names of new files and projects.
### :bug: Bugs fixed

View file

@ -433,7 +433,7 @@
(ptk/reify ::create-project
ptk/WatchEvent
(watch [_ state stream]
(let [name (name (gensym "New Project "))
(let [name (name (gensym (str (tr "dashboard.new-project-prefix") " ")))
team-id (:current-team-id state)
params {:name name
:team-id team-id}
@ -624,7 +624,7 @@
:or {on-success identity
on-error rx/throw}} (meta params)
name (name (gensym "New File "))
name (name (gensym (str (tr "dashboard.new-file-prefix") " ")))
params (assoc params :name name)]
(->> (rp/mutation! :create-file params)

View file

@ -290,10 +290,18 @@ msgstr "Move to other team"
msgid "dashboard.new-file"
msgstr "+ New File"
#: src/app/main/data/dashboard.cljs
msgid "dashboard.new-file-prefix"
msgstr "New File"
#: src/app/main/ui/dashboard/projects.cljs
msgid "dashboard.new-project"
msgstr "+ New project"
#: src/app/main/data/dashboard.cljs
msgid "dashboard.new-project-prefix"
msgstr "New Project"
#: src/app/main/ui/dashboard/search.cljs
msgid "dashboard.no-matches-for"
msgstr "No matches found for “%s“"

View file

@ -305,10 +305,18 @@ msgstr "Mover a otro equipo"
msgid "dashboard.new-file"
msgstr "+ Nuevo Archivo"
#: src/app/main/data/dashboard.cljs
msgid "dashboard.new-file-prefix"
msgstr "Nuevo Archivo"
#: src/app/main/ui/dashboard/projects.cljs
msgid "dashboard.new-project"
msgstr "+ Nuevo proyecto"
#: src/app/main/data/dashboard.cljs
msgid "dashboard.new-project-prefix"
msgstr "Nuevo Proyecto"
#: src/app/main/ui/dashboard/search.cljs
msgid "dashboard.no-matches-for"
msgstr "No se encuentra “%s“"