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

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

@@ -42,7 +42,7 @@
     }
   },
 
-  "search_buttons": {
+  "search_method_menu_item": {
     "search_in_all": "Search in all",
     "only_children_of_this_tree": "Only children of this tree",
     "exact_mutch": "Exact match"

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

@@ -44,7 +44,7 @@
     }
   },
 
-  "search_buttons": {
+  "search_method_menu_item": {
     "search_in_all": "全てのページ",
     "only_children_of_this_tree": "この階層下の子ページのみ",
     "exact_mutch": "キーワードに完全一致した文字を含むページのみ"

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

@@ -45,7 +45,7 @@
 		}
   },
 
-  "search_buttons": {
+  "search_method_menu_item": {
     "search_in_all": "所有页面",
     "only_children_of_this_tree": "当前分支以下内容",
     "exact_mutch": "完全匹配"

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

@@ -41,7 +41,7 @@ export const SearchMethodMenuItem = (props: SearchMethodMenuItemProps): JSX.Elem
           <MenuItem onClick={() => {}}>
             <span>{searchKeyword}</span>
             <div className="ms-auto">
-              <span>{t('search_buttons.search_in_all')}</span>
+              <span>{t('search_method_menu_item.search_in_all')}</span>
             </div>
           </MenuItem>
         )}
@@ -50,7 +50,7 @@ export const SearchMethodMenuItem = (props: SearchMethodMenuItemProps): JSX.Elem
           <code>prefix: {currentPagePath}</code>
           <span className="ms-2">{searchKeyword}</span>
           <div className="ms-auto">
-            <span>{t('search_buttons.only_children_of_this_tree')}</span>
+            <span>{t('search_method_menu_item.only_children_of_this_tree')}</span>
           </div>
         </MenuItem>
 
@@ -58,7 +58,7 @@ export const SearchMethodMenuItem = (props: SearchMethodMenuItemProps): JSX.Elem
           <MenuItem onClick={() => {}}>
             <span>{`"${searchKeyword}"`}</span>
             <div className="ms-auto">
-              <span>{t('search_buttons.exact_mutch')}</span>
+              <span>{t('search_method_menu_item.exact_mutch')}</span>
             </div>
           </MenuItem>
         ) }