Przeglądaj źródła

fix: Switch to: does not use i18n translation

greatbody 2 lat temu
rodzic
commit
c91e116889

+ 1 - 1
src/main/frontend/components/repo.cljs

@@ -232,7 +232,7 @@
                                            "origin-top-right.absolute.left-0.mt-2.rounded-md.shadow-lg")}
                                            "origin-top-right.absolute.left-0.mt-2.rounded-md.shadow-lg")}
                            (> (count repos) 1)              ; show switch to if there are multiple repos
                            (> (count repos) 1)              ; show switch to if there are multiple repos
                            (assoc :links-header [:div.font-medium.text-sm.opacity-70.px-4.pt-2.pb-1.flex.flex-row.justify-between.items-center
                            (assoc :links-header [:div.font-medium.text-sm.opacity-70.px-4.pt-2.pb-1.flex.flex-row.justify-between.items-center
-                                                 [:div "Switch to:"]
+                                                 [:div (t :left-side-bar/switch)]
                                                  (when (and (file-sync/enable-sync?) login?)
                                                  (when (and (file-sync/enable-sync?) login?)
                                                    (if remotes-loading?
                                                    (if remotes-loading?
                                                      (ui/loading "")
                                                      (ui/loading "")

+ 1 - 0
src/resources/dicts/en.edn

@@ -139,6 +139,7 @@
  :right-side-bar/show-journals "Show Journals"
  :right-side-bar/show-journals "Show Journals"
  :right-side-bar/separator "Right sidebar resize handler"
  :right-side-bar/separator "Right sidebar resize handler"
  :right-side-bar/toggle-right-sidebar "Toggle right sidebar"
  :right-side-bar/toggle-right-sidebar "Toggle right sidebar"
+ :left-side-bar/switch "Switch to:"
  :left-side-bar/journals "Journals"
  :left-side-bar/journals "Journals"
  :left-side-bar/create "Create"
  :left-side-bar/create "Create"
  :left-side-bar/new-page "New page"
  :left-side-bar/new-page "New page"

+ 1 - 0
src/resources/dicts/zh-cn.edn

@@ -75,6 +75,7 @@
  :right-side-bar/new-page "新页面"
  :right-side-bar/new-page "新页面"
  :right-side-bar/separator "调整右侧边栏大小"
  :right-side-bar/separator "调整右侧边栏大小"
  :right-side-bar/whiteboards "白板"
  :right-side-bar/whiteboards "白板"
+ :left-side-bar/switch "切换为:"
  :left-side-bar/journals "日志"
  :left-side-bar/journals "日志"
  :left-side-bar/new-page "新页面"
  :left-side-bar/new-page "新页面"
  :left-side-bar/nav-favorites "收藏页面"
  :left-side-bar/nav-favorites "收藏页面"