Просмотр исходного кода

updated share link list labels

ryuichi-e 5 лет назад
Родитель
Сommit
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 { t } = props;
   function deleteLinkHandler(shareLinkId) {
     if (props.onClickDeleteButton == null) {
       return;
@@ -27,7 +28,7 @@ const ShareLinkList = (props) => {
             <td>{shareLink.description}</td>
             <td>
               <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>
             </td>
           </tr>
@@ -41,10 +42,10 @@ const ShareLinkList = (props) => {
       <table className="table table-bordered">
         <thead>
           <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>
         </thead>
         <tbody>