soumaeda 2 лет назад
Родитель
Сommit
5b834dc268

+ 0 - 3
apps/app/public/static/locales/ja_JP/admin.json

@@ -4,9 +4,6 @@
   },
   "Update": "更新",
   "Delete": "削除",
-  "Send": "送信",
-  "Close": "閉じる",
-  "Done": "完了",
   "User": "ユーザー",
   "Name": "名前",
   "Page": "ページ",

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

@@ -5,6 +5,9 @@
   "Reset": "リセット",
   "Sign out": "ログアウト",
   "New": "作成",
+  "Send": "送信",
+  "Close": "閉じる",
+  "Done": "完了",
   "meta": {
     "display_name": "日本語"
   },

+ 0 - 3
apps/app/public/static/locales/zh_CN/admin.json

@@ -4,9 +4,6 @@
   },
   "Update": "更新",
   "Delete": "删除",
-  "Send": "发送",
-  "Close": "关闭",
-  "Done": "完成",
   "User": "用户",
   "Name": "姓名",
   "Created": "创建",

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

@@ -5,6 +5,9 @@
   "Reset": "重启",
 	"Sign out": "退出",
   "New": "新建",
+  "Send": "发送",
+  "Close": "关闭",
+  "Done": "完成",
 
   "meta": {
     "display_name": "简体中文"

+ 2 - 2
apps/app/src/components/Admin/Users/PasswordResetModal.jsx

@@ -50,10 +50,10 @@ class PasswordResetModal extends React.Component {
         <button type="submit" className={`btn ${isEmailSent ? 'btn-secondary' : 'btn-primary'}`}
           onClick={this.onClickSendNewPasswordButton} disabled={!isMailerSetup || isEmailSending || isEmailSent}>
           {isEmailSending && <i className='fa fa-spinner fa-pulse mx-2' />}
-          {!isEmailSending && (isEmailSent ? t('Done') : t('Send'))}
+          {!isEmailSending && (isEmailSent ? t('commons:Done') : t('commons:Send'))}
         </button>
         <button type="submit" className="btn btn-danger" onClick={this.props.onClose}>
-          {t('Close')}
+          {t('commons:Close')}
         </button>
       </>
     );