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