diff options
Diffstat (limited to 'client/src/app/+admin/plugins/shared')
-rw-r--r-- | client/src/app/+admin/plugins/shared/plugin-api.service.ts | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/client/src/app/+admin/plugins/shared/plugin-api.service.ts b/client/src/app/+admin/plugins/shared/plugin-api.service.ts index 1fb827832..b28d46df4 100644 --- a/client/src/app/+admin/plugins/shared/plugin-api.service.ts +++ b/client/src/app/+admin/plugins/shared/plugin-api.service.ts | |||
@@ -4,7 +4,6 @@ import { HttpClient, HttpParams } from '@angular/common/http' | |||
4 | import { Injectable } from '@angular/core' | 4 | import { Injectable } from '@angular/core' |
5 | import { ComponentPagination, RestExtractor, RestService } from '@app/core' | 5 | import { ComponentPagination, RestExtractor, RestService } from '@app/core' |
6 | import { PluginService } from '@app/core/plugins/plugin.service' | 6 | import { PluginService } from '@app/core/plugins/plugin.service' |
7 | import { I18n } from '@ngx-translate/i18n-polyfill' | ||
8 | import { peertubeTranslate } from '@shared/core-utils/i18n' | 7 | import { peertubeTranslate } from '@shared/core-utils/i18n' |
9 | import { | 8 | import { |
10 | InstallOrUpdatePlugin, | 9 | InstallOrUpdatePlugin, |
@@ -25,18 +24,17 @@ export class PluginApiService { | |||
25 | private authHttp: HttpClient, | 24 | private authHttp: HttpClient, |
26 | private restExtractor: RestExtractor, | 25 | private restExtractor: RestExtractor, |
27 | private restService: RestService, | 26 | private restService: RestService, |
28 | private i18n: I18n, | ||
29 | private pluginService: PluginService | 27 | private pluginService: PluginService |
30 | ) { } | 28 | ) { } |
31 | 29 | ||
32 | getPluginTypeOptions () { | 30 | getPluginTypeOptions () { |
33 | return [ | 31 | return [ |
34 | { | 32 | { |
35 | label: this.i18n('Plugins'), | 33 | label: $localize`Plugins`, |
36 | value: PluginType.PLUGIN | 34 | value: PluginType.PLUGIN |
37 | }, | 35 | }, |
38 | { | 36 | { |
39 | label: this.i18n('Themes'), | 37 | label: $localize`Themes`, |
40 | value: PluginType.THEME | 38 | value: PluginType.THEME |
41 | } | 39 | } |
42 | ] | 40 | ] |
@@ -44,10 +42,10 @@ export class PluginApiService { | |||
44 | 42 | ||
45 | getPluginTypeLabel (type: PluginType) { | 43 | getPluginTypeLabel (type: PluginType) { |
46 | if (type === PluginType.PLUGIN) { | 44 | if (type === PluginType.PLUGIN) { |
47 | return this.i18n('plugin') | 45 | return $localize`plugin` |
48 | } | 46 | } |
49 | 47 | ||
50 | return this.i18n('theme') | 48 | return $localize`theme` |
51 | } | 49 | } |
52 | 50 | ||
53 | getPlugins ( | 51 | getPlugins ( |