diff --git a/CHANGES.md b/CHANGES.md index 1fc41d5d6..46bbe67de 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -17,6 +17,7 @@ ### :bug: Bugs fixed +- Fix default project name in all languages [Taiga #2280](https://tree.taiga.io/project/penpot/issue/2280) - Fix line-height and letter-spacing inputs to allow negative values [Taiga #2381](https://tree.taiga.io/project/penpot/issue/2381) - Fix typo in Handoff tooltip [Taiga #2428](https://tree.taiga.io/project/penpot/issue/2428). - Fix crash when pressing Shift+1 on empty file [#1435](https://github.com/penpot/penpot/issues/1435). diff --git a/frontend/src/app/main/ui/components/context_menu.cljs b/frontend/src/app/main/ui/components/context_menu.cljs index e8198377d..617436a4a 100644 --- a/frontend/src/app/main/ui/components/context_menu.cljs +++ b/frontend/src/app/main/ui/components/context_menu.cljs @@ -6,9 +6,11 @@ (ns app.main.ui.components.context-menu (:require + [app.main.refs :as refs] [app.main.ui.components.dropdown :refer [dropdown']] [app.main.ui.icons :as i] [app.util.dom :as dom] + [app.util.i18n :as i18n :refer [tr]] [app.util.object :as obj] [goog.object :as gobj] [rumext.alpha :as mf])) @@ -29,6 +31,8 @@ left (gobj/get props "left" 0) fixed? (gobj/get props "fixed?" false) min-width? (gobj/get props "min-width?" false) + route (mf/deref refs/route) + in-dashboard? (= :dashboard-projects (:name (:data route))) local (mf/use-state {:offset 0 :levels nil}) @@ -107,7 +111,9 @@ [:a.context-menu-action {:on-click #(do (dom/stop-propagation %) (on-close) (option-handler %))} - option-name] + (if (and in-dashboard? (= option-name "Default")) + (tr "dashboard.default-team-name") + option-name)] [:a.context-menu-action.submenu {:data-no-close true :on-click (enter-submenu option-name sub-options)}