import { Injectable } from '@angular/core'
import { ComponentPagination, RestExtractor, RestService } from '@app/core'
import { PluginService } from '@app/core/plugins/plugin.service'
-import { I18n } from '@ngx-translate/i18n-polyfill'
import { peertubeTranslate } from '@shared/core-utils/i18n'
import {
InstallOrUpdatePlugin,
private authHttp: HttpClient,
private restExtractor: RestExtractor,
private restService: RestService,
- private i18n: I18n,
private pluginService: PluginService
) { }
getPluginTypeOptions () {
return [
{
- label: this.i18n('Plugins'),
+ label: $localize`Plugins`,
value: PluginType.PLUGIN
},
{
- label: this.i18n('Themes'),
+ label: $localize`Themes`,
value: PluginType.THEME
}
]
getPluginTypeLabel (type: PluginType) {
if (type === PluginType.PLUGIN) {
- return this.i18n('plugin')
+ return $localize`plugin`
}
- return this.i18n('theme')
+ return $localize`theme`
}
getPlugins (