aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-forms
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-06-06 14:32:47 +0200
committerChocobozzz <me@florianbigard.com>2023-06-29 09:49:06 +0200
commit866c5f667da9fc09f3b093ff0a6f89d4af0ce5af (patch)
tree7a42f7974cec400f9cf09e86de00e69e36b2136d /client/src/app/shared/shared-forms
parent40346ead2b0b7afa475aef057d3673b6c7574b7a (diff)
downloadPeerTube-866c5f667da9fc09f3b093ff0a6f89d4af0ce5af.tar.gz
PeerTube-866c5f667da9fc09f3b093ff0a6f89d4af0ce5af.tar.zst
PeerTube-866c5f667da9fc09f3b093ff0a6f89d4af0ce5af.zip
Simplify ICU in components
Diffstat (limited to 'client/src/app/shared/shared-forms')
-rw-r--r--client/src/app/shared/shared-forms/select/select-checkbox-all.component.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/client/src/app/shared/shared-forms/select/select-checkbox-all.component.ts b/client/src/app/shared/shared-forms/select/select-checkbox-all.component.ts
index 2c3226f68..8b6cd091a 100644
--- a/client/src/app/shared/shared-forms/select/select-checkbox-all.component.ts
+++ b/client/src/app/shared/shared-forms/select/select-checkbox-all.component.ts
@@ -1,7 +1,7 @@
1import { Component, forwardRef, Input } from '@angular/core' 1import { Component, forwardRef, Input } from '@angular/core'
2import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms' 2import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'
3import { Notifier } from '@app/core' 3import { Notifier } from '@app/core'
4import { prepareIcu } from '@app/helpers' 4import { formatICU } from '@app/helpers'
5import { SelectOptionsItem } from '../../../../types/select-options-item.model' 5import { SelectOptionsItem } from '../../../../types/select-options-item.model'
6import { ItemSelectCheckboxValue } from './select-checkbox.component' 6import { ItemSelectCheckboxValue } from './select-checkbox.component'
7 7
@@ -80,9 +80,9 @@ export class SelectCheckboxAllComponent implements ControlValueAccessor {
80 80
81 if (outputItems.length >= this.maxItems) { 81 if (outputItems.length >= this.maxItems) {
82 this.notifier.error( 82 this.notifier.error(
83 prepareIcu($localize`You can't select more than {maxItems, plural, =1 {1 item} other {{maxItems} items}}`)( 83 formatICU(
84 { maxItems: this.maxItems }, 84 $localize`You can't select more than {maxItems, plural, =1 {1 item} other {{maxItems} items}}`,
85 $localize`You can't select more than ${this.maxItems} items` 85 { maxItems: this.maxItems }
86 ) 86 )
87 ) 87 )
88 88