Fix a few bugs, more translation

This commit is contained in:
jetli 2024-09-03 13:27:31 -07:00
parent e56f544b4a
commit 0ea55d7e44
4 changed files with 22 additions and 13 deletions

View File

@ -217,6 +217,5 @@ export default {
'Upload attachment': 'Upload attachment', 'Upload attachment': 'Upload attachment',
'Didn\'t get the email? Check junk folder or': 'Didn\'t get the email? Check junk folder or ', 'Didn\'t get the email? Check junk folder or': 'Didn\'t get the email? Check junk folder or ',
'send again': 'send again', 'send again': 'send again',
'No content yet': 'No content yet' 'No content yet': 'No content yet',
} }

View File

@ -215,5 +215,15 @@ export default {
'Upload attachment': '上传附件', 'Upload attachment': '上传附件',
'Didn\'t get the email? Check junk folder or': '没收到邮件?检查垃圾文件夹或', 'Didn\'t get the email? Check junk folder or': '没收到邮件?检查垃圾文件夹或',
'send again': '重新发送', 'send again': '重新发送',
'No content yet': '暂无内容' 'No content yet': '暂无内容',
OUTSTANDING: '进行中',
PAID: '已付款',
DONE: '已完成',
RECRUITING: '招人中',
ONGOING: '进行中',
PENDING: '待确认',
CLOSED: '已关闭',
REJECTED: '已拒绝',
APPLYING: '申请中',
ACCEPTING: '接受中'
} }

View File

@ -17,7 +17,7 @@
</div> </div>
<div class="project-item-status-container"> <div class="project-item-status-container">
<label class="project-item-label">{{ $t('Status') }}</label> <label class="project-item-label">{{ $t('Status') }}</label>
<p class="project-item-text">{{ fromIntToProjectStatus(project.status) }}</p> <p class="project-item-text">{{ $t(fromIntToProjectStatus(project.status)) }}</p>
</div> </div>
<div class="project-item-date-container"> <div class="project-item-date-container">
<label class="project-item-label">{{ $t('Update') }}</label> <label class="project-item-label">{{ $t('Update') }}</label>
@ -211,7 +211,7 @@
<label class="project-item-label">{{ $t('Status') }}</label> <label class="project-item-label">{{ $t('Status') }}</label>
<p class="project-item-text"> <p class="project-item-text">
{{ {{
fromIntToMilestoneStatus(project.project.progress.milestone_status) $t(fromIntToMilestoneStatus(project.status))
}} }}
</p> </p>
</div> </div>
@ -260,7 +260,7 @@
<div class="project-milestones-table-content"> <div class="project-milestones-table-content">
<span class="project-milestones-table-label">{{ $t('Status') }}</span> <span class="project-milestones-table-label">{{ $t('Status') }}</span>
<span class="project-milestones-table-span">{{ <span class="project-milestones-table-span">{{
fromIntToMilestoneStatus(milestone.status) $t(fromIntToMilestoneStatus(milestone.status))
}}</span> }}</span>
</div> </div>
</td> </td>

View File

@ -56,7 +56,7 @@ const convertIntoToMilestoneStatus = function (i) {
return p return p
} }
} }
return milestoneStatusEnum.DONE return Object.keys(milestoneStatusEnum).find(key => milestoneStatusEnum[key] === milestoneStatusEnum.DONE)
} }
const convertIntoToProjectIssueStatus = function (i) { const convertIntoToProjectIssueStatus = function (i) {