mirror of
https://github.com/penpot/penpot.git
synced 2025-05-30 13:26:10 +02:00
✨ Translate name of default projects
This commit is contained in:
parent
161b8cdabb
commit
ee6717ef69
1 changed files with 10 additions and 3 deletions
|
@ -39,6 +39,11 @@
|
||||||
current-projects (remove #(= (:id %) (:project-id file))
|
current-projects (remove #(= (:id %) (:project-id file))
|
||||||
(:projects current-team))
|
(:projects current-team))
|
||||||
|
|
||||||
|
project-name (fn [project]
|
||||||
|
(if (:is-default project)
|
||||||
|
(tr "labels.drafts")
|
||||||
|
(:name project)))
|
||||||
|
|
||||||
on-new-tab
|
on-new-tab
|
||||||
(mf/use-callback
|
(mf/use-callback
|
||||||
(mf/deps file)
|
(mf/deps file)
|
||||||
|
@ -159,15 +164,17 @@
|
||||||
(when (or (seq current-projects) (seq other-teams))
|
(when (or (seq current-projects) (seq other-teams))
|
||||||
[(tr "dashboard.move-to") nil
|
[(tr "dashboard.move-to") nil
|
||||||
(conj (vec (for [project current-projects]
|
(conj (vec (for [project current-projects]
|
||||||
[(:name project) (on-move (:id current-team)
|
[(project-name project)
|
||||||
|
(on-move (:id current-team)
|
||||||
(:id project))]))
|
(:id project))]))
|
||||||
(when (seq other-teams)
|
(when (seq other-teams)
|
||||||
[(tr "dashboard.move-to-other-team") nil
|
[(tr "dashboard.move-to-other-team") nil
|
||||||
(for [team other-teams]
|
(for [team other-teams]
|
||||||
[(:name team) nil
|
[(:name team) nil
|
||||||
(for [sub-project (:projects team)]
|
(for [sub-project (:projects team)]
|
||||||
[(:name sub-project) (on-move (:id team)
|
[(project-name sub-project)
|
||||||
(:id sub-project))])])]))])
|
(on-move (:id team)
|
||||||
|
(:id sub-project))])])]))])
|
||||||
(if (:is-shared file)
|
(if (:is-shared file)
|
||||||
[(tr "dashboard.remove-shared") on-del-shared]
|
[(tr "dashboard.remove-shared") on-del-shared]
|
||||||
[(tr "dashboard.add-shared") on-add-shared])
|
[(tr "dashboard.add-shared") on-add-shared])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue