zwbetz-gh 5 жил өмнө
parent
commit
b4d6db179a

+ 4 - 1
i18n/en.yaml

@@ -22,4 +22,7 @@
   translation: "Tags:"
 - id: aria_label_tags
   translation: tags
-
+- id: search_placeholder
+  translation: Search by title...
+- id: search_aria_label
+  translation: Search by title

+ 2 - 2
layouts/_default/list.html

@@ -5,8 +5,8 @@
   <input
     id="search"
     type="text"
-    placeholder="Search by title..."
-    aria-label="Search by title"
+    placeholder="{{ T "search_placeholder" }}"
+    aria-label="{{ T "search_aria_label" }}"
   />
   {{ end }}
   <ul class="patterns-list" id="list">