diff --git a/src/main/frontend/components/onboarding/quick_tour.cljs b/src/main/frontend/components/onboarding/quick_tour.cljs index 031bf2db67..de64678fc3 100644 --- a/src/main/frontend/components/onboarding/quick_tour.cljs +++ b/src/main/frontend/components/onboarding/quick_tour.cljs @@ -2,6 +2,7 @@ (:require [promesa.core :as p] [cljs-bean.core :as bean] [frontend.state :as state] + [frontend.context.i18n :refer [t]] [frontend.date :as date] [frontend.util :as util] [frontend.handler.route :as router-handler] @@ -154,8 +155,8 @@ (defn- create-steps-whiteboard! [^js jsTour] [;; step 1 {:id "whiteboard-home" - :text (h/render-html [:section [:h2 "🖼 Home for your whiteboards"] - [:p "Whiteboards have their own section in the app where you can see them at a glance, create new ones or delete them easily."]]) + :text (h/render-html [:section [:h2 (t :on-boarding/tour-whiteboard-home "🖼")] + [:p (t :on-boarding/tour-whiteboard-home-description)]]) :attachTo {:element ".nav-header .whiteboard" :on "right"} :beforeShowPromise (fn [] (when-not (state/sub :ui/left-sidebar-open?) @@ -170,8 +171,8 @@ ;; step 2 {:id "whiteboard-new" - :text (h/render-html [:section [:h2 "🆕️ Create new whiteboard"] - [:p "There is multiple ways of creating a new whiteboard. One of them is always right here in the dashboard."]]) + :text (h/render-html [:section [:h2 (t :on-boarding/tour-whiteboard-new "🆕️")] + [:p (t :on-boarding/tour-whiteboard-new-description)]]) :beforeShowPromise (fn [] (router-handler/redirect-to-whiteboard-dashboard!) (wait-target ".dashboard-create-card" 500)) diff --git a/src/main/frontend/dicts.cljc b/src/main/frontend/dicts.cljc index 2ebb27cf0e..4fae60ae4f 100644 --- a/src/main/frontend/dicts.cljc +++ b/src/main/frontend/dicts.cljc @@ -21,6 +21,10 @@ :on-boarding/welcome-whiteboard-modal-description "Whiteboards are a great tool for brainstorming and organization. Now you can place any of your thoughts from the knowledge base or new ones next to each other on a spatial canvas to connect, associate and understand in new ways." :on-boarding/welcome-whiteboard-modal-later "Later" :on-boarding/welcome-whiteboard-modal-start "Start whiteboarding" + :on-boarding/tour-whiteboard-home "{1} Home for your whiteboards" + :on-boarding/tour-whiteboard-home-description "Whiteboards have their own section in the app where you can see them at a glance, create new ones or delete them easily." + :on-boarding/tour-whiteboard-new "{1} Create new whiteboard" + :on-boarding/tour-whiteboard-new-description "There is multiple ways of creating a new whiteboard. One of them is always right here in the dashboard." :help/start "Getting started" :help/about "About Logseq" :help/roadmap "Roadmap"