fixed hotkey name localization

This commit is contained in:
Eugene Pankov 2022-01-26 20:17:16 +01:00
parent 372662c787
commit 1695c0b522
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4
3 changed files with 4 additions and 4 deletions

View File

@ -201,11 +201,11 @@ export class AppHotkeyProvider extends HotkeyProvider {
...this.hotkeys,
...profiles.map(profile => ({
id: `profile.${AppHotkeyProvider.getProfileHotkeyName(profile)}`,
name: `New tab: ${profile.name}`,
name: this.translate.instant('New tab: {profile}', { profile: profile.name }),
})),
...this.profilesService.getProviders().map(provider => ({
id: `profile-selectors.${provider.id}`,
name: `Show ${provider.name} profile selector`,
name: this.translate.instant('Show {type} profile selector', { type: provider.name }),
})),
]
}

View File

@ -10,7 +10,7 @@ h3.mb-3(translate) Hotkeys
ng-container(*ngFor='let hotkey of hotkeyDescriptions')
.row.align-items-center(*ngIf='!hotkeyFilter || hotkeyFilterFn(hotkey, hotkeyFilter)')
.col-8.py-2
span {{hotkey.name}}
span {{hotkey.name|translate}}
span.ml-2.text-muted ({{hotkey.id}})
.col-4.pr-5
multi-hotkey-input(

View File

@ -69,7 +69,7 @@
.form-line
.header
.title(translate) Language
select.form-control([(ngModel)]='config.store.language', (ngModelChange)='saveConfiguration()')
select.form-control([(ngModel)]='config.store.language', (ngModelChange)='saveConfiguration(true)')
option([ngValue]='null', translate) Automatic
option(
[value]='lang.code',