Преглед изворни кода

chore: replace hard-coded text with existed i18n key

situ2001 пре 3 година
родитељ
комит
0a4b67d49d
2 измењених фајлова са 2 додато и 2 уклоњено
  1. 1 1
      src/main/frontend/components/header.cljs
  2. 1 1
      src/main/frontend/components/settings.cljs

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

@@ -118,7 +118,7 @@
         :icon (ui/icon "brand-discord")}
         :icon (ui/icon "brand-discord")}
        
        
        {:title [:div.flex-row.flex.justify-between.items-center
        {:title [:div.flex-row.flex.justify-between.items-center
-                [:span "Bug report"]]
+                [:span (t :help/bug)]]
         :options {:href bug-report-url
         :options {:href bug-report-url
                   :title "Fire a bug report on Github"
                   :title "Fire a bug report on Github"
                   :target "_blank"}
                   :target "_blank"}

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

@@ -453,7 +453,7 @@
    [:div.mt-1.sm:mt-0.sm:col-span-2
    [:div.mt-1.sm:mt-0.sm:col-span-2
     [:div
     [:div
      (ui/button
      (ui/button
-       "Settings"
+       (t :settings)
        :class "text-sm p-1"
        :class "text-sm p-1"
        :style {:margin-top "0px"}
        :style {:margin-top "0px"}
        :on-click
        :on-click