mirror of https://gitee.com/answerdev/answer.git
fix: timeline add i18n
This commit is contained in:
parent
da20711a6d
commit
574b926108
|
@ -1209,3 +1209,9 @@ ui:
|
|||
title: "History for"
|
||||
show_votes: "Show votes"
|
||||
n_or_a: N/A
|
||||
title_for: "Timeline for"
|
||||
title_for_tag: "Title for tag"
|
||||
datetime: Datetime
|
||||
type: Type
|
||||
by: By
|
||||
comment: Comment
|
||||
|
|
|
@ -48,8 +48,8 @@ const Index: FC = () => {
|
|||
<PageTitle
|
||||
title={
|
||||
timelineData?.object_info.object_type === 'tag'
|
||||
? `Timeline for tag ${timelineData?.object_info.title}`
|
||||
: `Timeline for ${timelineData?.object_info.title}`
|
||||
? `${t('title_for_tag')} ${timelineData?.object_info.title}`
|
||||
: `${t('title_for')} ${timelineData?.object_info.title}`
|
||||
}
|
||||
/>
|
||||
<Row className="py-3 justify-content-center">
|
||||
|
@ -71,10 +71,10 @@ const Index: FC = () => {
|
|||
<Table hover>
|
||||
<thead>
|
||||
<tr>
|
||||
<th style={{ width: '20%' }}>Datetime</th>
|
||||
<th style={{ width: '15%' }}>Type</th>
|
||||
<th style={{ width: '19%' }}>By</th>
|
||||
<th>Comment</th>
|
||||
<th style={{ width: '20%' }}>{t('datetime')}</th>
|
||||
<th style={{ width: '15%' }}>{t('type')}</th>
|
||||
<th style={{ width: '19%' }}>{t('by')}</th>
|
||||
<th>{t('comment')}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
|
Loading…
Reference in New Issue