yuto-o 4 лет назад
Родитель
Сommit
6f10f8a179
1 измененных файлов с 4 добавлено и 3 удалено
  1. 4 3
      packages/app/src/components/SearchPage/SearchControl.tsx

+ 4 - 3
packages/app/src/components/SearchPage/SearchControl.tsx

@@ -1,8 +1,8 @@
 import React, { FC } from 'react';
 import React, { FC } from 'react';
+import { useTranslation } from 'react-i18next';
 import SearchPageForm from './SearchPageForm';
 import SearchPageForm from './SearchPageForm';
 import AppContainer from '../../client/services/AppContainer';
 import AppContainer from '../../client/services/AppContainer';
 
 
-
 type Props = {
 type Props = {
   searchingKeyword: string,
   searchingKeyword: string,
   appContainer: AppContainer,
   appContainer: AppContainer,
@@ -15,6 +15,7 @@ const SearchControl: FC <Props> = (props: Props) => {
   // Temporaly workaround for lint error
   // Temporaly workaround for lint error
   // later needs to be fixed: SearchControl to typescript componet
   // later needs to be fixed: SearchControl to typescript componet
   const SearchPageFormTypeAny : any = SearchPageForm;
   const SearchPageFormTypeAny : any = SearchPageForm;
+  const { t } = useTranslation('');
 
 
   const onExcludeUsersHome = () => {
   const onExcludeUsersHome = () => {
     if (props.onExcludeUsersHome != null) {
     if (props.onExcludeUsersHome != null) {
@@ -48,7 +49,7 @@ const SearchControl: FC <Props> = (props: Props) => {
             onClick={() => onExcludeUsersHome()}
             onClick={() => onExcludeUsersHome()}
           />
           />
           <label className="form-check-label" htmlFor="flexCheckDefault">
           <label className="form-check-label" htmlFor="flexCheckDefault">
-            /user下を含む
+            {t('Include Subordinated Target Page', { target: '/user' })}
           </label>
           </label>
         </div>
         </div>
         <div className="form-check">
         <div className="form-check">
@@ -60,7 +61,7 @@ const SearchControl: FC <Props> = (props: Props) => {
             onClick={() => onExcludeTrash()}
             onClick={() => onExcludeTrash()}
           />
           />
           <label className="form-check-label" htmlFor="flexCheckChecked">
           <label className="form-check-label" htmlFor="flexCheckChecked">
-            /trash下を含む
+            {t('Include Subordinated Target Page', { target: '/trash' })}
           </label>
           </label>
         </div>
         </div>
       </div>
       </div>