Shun Miyazawa 2 лет назад
Родитель
Сommit
6cdade9a5c

+ 6 - 0
apps/app/public/static/locales/en_US/commons.json

@@ -42,6 +42,12 @@
     }
   },
 
+  "search_buttons": {
+    "search_in_all": "Search in all",
+    "only_children_of_this_tree": "Only children of this tree",
+    "exact_mutch": "Exact match"
+  },
+
   "share_links": {
     "Share Link": "Share Link",
     "Page Path": "Page Path",

+ 6 - 0
apps/app/public/static/locales/ja_JP/commons.json

@@ -44,6 +44,12 @@
     }
   },
 
+  "search_buttons": {
+    "search_in_all": "全てのページ",
+    "only_children_of_this_tree": "この階層下の子ページのみ",
+    "exact_mutch": "キーワードに一致したページのみ"
+  },
+
   "share_links": {
     "Share Link": "共有用リンク",
     "Page Path": "ページパス",

+ 6 - 0
apps/app/public/static/locales/zh_CN/commons.json

@@ -45,6 +45,12 @@
 		}
   },
 
+  "search_buttons": {
+    "search_in_all": "所有页面",
+    "only_children_of_this_tree": "当前分支以下内容",
+    "exact_mutch": "完全匹配"
+  },
+
   "share_links": {
     "Share Link": "Share Link",
     "Page Path": "Page Path",

+ 3 - 3
apps/app/src/features/search/client/components/SearchButtons.tsx

@@ -22,7 +22,7 @@ export const SearchButtons = (props: Props): JSX.Element => {
               <span className="material-symbols-outlined fs-4 me-3">search</span>
               <span>{searchText}</span>
               <div className="ms-auto">
-                <span>Search in all</span>
+                <span>{t('search_buttons.search_in_all')}</span>
               </div>
             </div>
           </tr>
@@ -34,7 +34,7 @@ export const SearchButtons = (props: Props): JSX.Element => {
             <code>~pagehoge/</code>
             <span className="ms-2">{searchText}</span>
             <div className="ms-auto">
-              <span>{t('header_search_box.item_label.This tree')}</span>
+              <span>{t('search_buttons.only_children_of_this_tree')}</span>
             </div>
           </div>
         </tr>
@@ -45,7 +45,7 @@ export const SearchButtons = (props: Props): JSX.Element => {
               <span className="material-symbols-outlined fs-4 me-3">search</span>
               <span>{`"${searchText}"`}</span>
               <div className="ms-auto">
-                <span>Exact match</span>
+                <span>{t('search_buttons.exact_mutch')}</span>
               </div>
             </div>
           </tr>