added translations for the inbox page

This commit is contained in:
Richard 2020-01-19 13:15:34 +01:00
parent cae1f0101f
commit ca62e3d882

View file

@ -108,7 +108,7 @@ export class Inbox extends Component<any, InboxState> {
<ul class="list-inline mb-1 text-muted small font-weight-bold">
<li className="list-inline-item">
<span class="pointer" onClick={this.markAllAsRead}>
<T i18nKey="mark_all_as_read">#</T>
{ i18n.t('mark_all_as_read') }
</span>
</li>
</ul>
@ -133,13 +133,14 @@ export class Inbox extends Component<any, InboxState> {
class="custom-select custom-select-sm w-auto mr-2"
>
<option disabled>
<T i18nKey="type">#</T>
{ i18n.t('type') }
</option>
<option value={UnreadOrAll.Unread}>
<T i18nKey="unread">#</T>
{ i18n.t('unread') }
</option>
<option value={UnreadOrAll.All}>
<T i18nKey="all">#</T>
{ i18n.t('all') }
</option>
</select>
<select
@ -148,16 +149,16 @@ export class Inbox extends Component<any, InboxState> {
class="custom-select custom-select-sm w-auto mr-2"
>
<option disabled>
<T i18nKey="type">#</T>
{ i18n.t('type') }
</option>
<option value={UnreadType.Both}>
<T i18nKey="both">#</T>
{ i18n.t('both') }
</option>
<option value={UnreadType.Replies}>
<T i18nKey="replies">#</T>
{ i18n.t('replies') }
</option>
<option value={UnreadType.Mentions}>
<T i18nKey="mentions">#</T>
{ i18n.t('mentions') }
</option>
</select>
<SortSelect
@ -228,14 +229,14 @@ export class Inbox extends Component<any, InboxState> {
class="btn btn-sm btn-secondary mr-1"
onClick={linkEvent(this, this.prevPage)}
>
<T i18nKey="prev">#</T>
{ i18n.t('prev') }
</button>
)}
<button
class="btn btn-sm btn-secondary"
onClick={linkEvent(this, this.nextPage)}
>
<T i18nKey="next">#</T>
{ i18n.t('next') }
</button>
</div>
);