diff options
author | Chocobozzz <me@florianbigard.com> | 2023-06-06 14:32:47 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-06-29 09:49:06 +0200 |
commit | 866c5f667da9fc09f3b093ff0a6f89d4af0ce5af (patch) | |
tree | 7a42f7974cec400f9cf09e86de00e69e36b2136d /client/src/app/+admin/config | |
parent | 40346ead2b0b7afa475aef057d3673b6c7574b7a (diff) | |
download | PeerTube-866c5f667da9fc09f3b093ff0a6f89d4af0ce5af.tar.gz PeerTube-866c5f667da9fc09f3b093ff0a6f89d4af0ce5af.tar.zst PeerTube-866c5f667da9fc09f3b093ff0a6f89d4af0ce5af.zip |
Simplify ICU in components
Diffstat (limited to 'client/src/app/+admin/config')
-rw-r--r-- | client/src/app/+admin/config/edit-custom-config/edit-configuration.service.ts | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/client/src/app/+admin/config/edit-custom-config/edit-configuration.service.ts b/client/src/app/+admin/config/edit-custom-config/edit-configuration.service.ts index 628c2d102..42c0e6dc2 100644 --- a/client/src/app/+admin/config/edit-custom-config/edit-configuration.service.ts +++ b/client/src/app/+admin/config/edit-custom-config/edit-configuration.service.ts | |||
@@ -1,6 +1,6 @@ | |||
1 | import { Injectable } from '@angular/core' | 1 | import { Injectable } from '@angular/core' |
2 | import { FormGroup } from '@angular/forms' | 2 | import { FormGroup } from '@angular/forms' |
3 | import { prepareIcu } from '@app/helpers' | 3 | import { formatICU } from '@app/helpers' |
4 | 4 | ||
5 | export type ResolutionOption = { | 5 | export type ResolutionOption = { |
6 | id: string | 6 | id: string |
@@ -99,10 +99,7 @@ export class EditConfigurationService { | |||
99 | return { | 99 | return { |
100 | value, | 100 | value, |
101 | atMost: noneOnAuto, // auto switches everything to a least estimation since ffmpeg will take as many threads as possible | 101 | atMost: noneOnAuto, // auto switches everything to a least estimation since ffmpeg will take as many threads as possible |
102 | unit: prepareIcu($localize`{value, plural, =1 {thread} other {threads}}`)( | 102 | unit: formatICU($localize`{value, plural, =1 {thread} other {threads}}`, { value }) |
103 | { value }, | ||
104 | $localize`threads` | ||
105 | ) | ||
106 | } | 103 | } |
107 | } | 104 | } |
108 | } | 105 | } |