]
this.columns = [
- { id: 'username', label: 'Username' },
- { id: 'email', label: 'Email' },
- { id: 'quota', label: 'Video quota' },
- { id: 'role', label: 'Role' },
- { id: 'createdAt', label: 'Created' }
+ { id: 'username', label: $localize`Username` },
+ { id: 'email', label: $localize`Email` },
+ { id: 'quota', label: $localize`Video quota` },
+ { id: 'role', label: $localize`Role` },
+ { id: 'createdAt', label: $localize`Created` }
]
this.selectedColumns = this.columns.map(c => c.id)
- this.columns.push({ id: 'quotaDaily', label: 'Daily quota' })
- this.columns.push({ id: 'pluginAuth', label: 'Auth plugin' })
- this.columns.push({ id: 'lastLoginDate', label: 'Last login' })
+ this.columns.push({ id: 'quotaDaily', label: $localize`Daily quota` })
+ this.columns.push({ id: 'pluginAuth', label: $localize`Auth plugin` })
+ this.columns.push({ id: 'lastLoginDate', label: $localize`Last login` })
}
getIdentifier () {
<div class="peertube-select-container peertube-select-button">
<select [(ngModel)]="sort" (ngModelChange)="onChangeSortColumn()" class="form-control">
- <option value="undefined" disabled>Sort by</option>
+ <option value="undefined" disabled i18n>Sort by</option>
<option value="-publishedAt" i18n>Last published first</option>
<option value="-createdAt" i18n>Last created first</option>
<option value="-views" i18n>Most viewed first</option>