ソースを参照

updated share link list labels

ryuichi-e 5 年 前
コミット
7301dea382
1 ファイル変更6 行追加5 行削除
  1. 6 5
      src/client/js/components/ShareLinkList.jsx

+ 6 - 5
src/client/js/components/ShareLinkList.jsx

@@ -10,6 +10,7 @@ import AppContainer from '../services/AppContainer';
 
 
 const ShareLinkList = (props) => {
 const ShareLinkList = (props) => {
 
 
+  const { t } = props;
   function deleteLinkHandler(shareLinkId) {
   function deleteLinkHandler(shareLinkId) {
     if (props.onClickDeleteButton == null) {
     if (props.onClickDeleteButton == null) {
       return;
       return;
@@ -27,7 +28,7 @@ const ShareLinkList = (props) => {
             <td>{shareLink.description}</td>
             <td>{shareLink.description}</td>
             <td>
             <td>
               <button className="btn btn-outline-warning" type="button" onClick={() => deleteLinkHandler(shareLink._id)}>
               <button className="btn btn-outline-warning" type="button" onClick={() => deleteLinkHandler(shareLink._id)}>
-                <i className="icon-trash"></i>Delete
+                <i className="icon-trash"></i>{t('Delete')}
               </button>
               </button>
             </td>
             </td>
           </tr>
           </tr>
@@ -41,10 +42,10 @@ const ShareLinkList = (props) => {
       <table className="table table-bordered">
       <table className="table table-bordered">
         <thead>
         <thead>
           <tr>
           <tr>
-            <th>Link</th>
-            <th>Expiration</th>
-            <th>Description</th>
-            <th>Order</th>
+            <th>{t('Share Link')}</th>
+            <th>{t('expire')}</th>
+            <th>{t('description')}</th>
+            <th></th>
           </tr>
           </tr>
         </thead>
         </thead>
         <tbody>
         <tbody>