sorted messages, cleaned up translateParams attributes

This commit is contained in:
Eugene Pankov
2022-02-10 19:10:38 +01:00
parent fe5193d9f1
commit 7b07a67947
12 changed files with 87 additions and 29 deletions

View File

@@ -59,7 +59,10 @@ ul.nav-tabs(ngbNav, #nav='ngbNav')
i.fas.fa-fw.fa-file
.ml-2.d-flex.flex-column.align-items-start
div {{cfg.name}}
small.text-muted {{ 'Modified on {date}'|translate:{date: cfg.modified_at|date:"medium"} }}
small.text-muted(
translate='Modified on {date}',
[translateParams]='{date: cfg.modified_at|date:"medium"}'
)
.mr-auto
button.btn.btn-link.ml-1(
(click)='uploadAndSync(cfg)',

View File

@@ -2,7 +2,10 @@
h3.m-0 {{profile.name}}
.modal-header(*ngIf='defaultsMode')
h3.m-0 {{ 'Defaults for {type}'|translate:{type: profileProvider.name} }}
h3.m-0(
translate='Defaults for {type}',
[translateParams]='{type: profileProvider.name}'
)
.modal-body
.row

View File

@@ -197,7 +197,7 @@ export class ProfilesSettingsTabComponent extends BaseComponent {
if ((await this.platform.showMessageBox(
{
type: 'warning',
message: this.translate.instant(`Delete the group's profiles?`),
message: this.translate.instant('Delete the group\'s profiles?'),
buttons: [
this.translate.instant('Move to "Ungrouped"'),
this.translate.instant('Delete'),

View File

@@ -74,7 +74,7 @@
option(
[value]='lang.code',
*ngFor='let lang of allLanguages'
) {{lang.name|translate}}
) {{lang.name}}
.form-line(*ngIf='platform.isShellIntegrationSupported()')
.header