aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-06-05 09:13:26 +0200
committerChocobozzz <me@florianbigard.com>2018-06-05 09:13:26 +0200
commit25acef90a85c1584880dec96aa402f896af8364a (patch)
tree5e62e68c2e32a94a289ebd77f0610ed5a085a142 /client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts
parent632f9815c6ab87fce3f3f7399cef9f7679fde908 (diff)
downloadPeerTube-25acef90a85c1584880dec96aa402f896af8364a.tar.gz
PeerTube-25acef90a85c1584880dec96aa402f896af8364a.tar.zst
PeerTube-25acef90a85c1584880dec96aa402f896af8364a.zip
Fix i18n in components
Diffstat (limited to 'client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts')
-rw-r--r--client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts
index 3ffcc6c31..73ff4b7bb 100644
--- a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts
+++ b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts
@@ -161,14 +161,14 @@ export class EditCustomConfigComponent extends FormReactive implements OnInit {
161 const customizationsText = customizations.join('/') 161 const customizationsText = customizations.join('/')
162 162
163 // FIXME: i18n service does not support string concatenation 163 // FIXME: i18n service does not support string concatenation
164 const message = this.i18n('You set custom {{ customizationsText }}. ', { customizationsText }) + 164 const message = this.i18n('You set custom {{customizationsText}}. ', { customizationsText }) +
165 this.i18n('This could lead to security issues or bugs if you do not understand it. ') + 165 this.i18n('This could lead to security issues or bugs if you do not understand it. ') +
166 this.i18n('Are you sure you want to update the configuration?') 166 this.i18n('Are you sure you want to update the configuration?')
167 const label = this.i18n( 167 const label = this.i18n(
168 'Please type "I understand the {{ customizationsText }} I set" to confirm.', 168 'Please type "I understand the {{customizationsText}} I set" to confirm.',
169 { customizationsText } 169 { customizationsText }
170 ) 170 )
171 const expectedInputValue = this.i18n('I understand the {{ customizationsText }} I set', { customizationsText }) 171 const expectedInputValue = this.i18n('I understand the {{customizationsText}} I set', { customizationsText })
172 172
173 const confirmRes = await this.confirmService.confirmWithInput(message, label, expectedInputValue) 173 const confirmRes = await this.confirmService.confirmWithInput(message, label, expectedInputValue)
174 if (confirmRes === false) return 174 if (confirmRes === false) return