mirror of
https://github.com/Eugeny/tabby.git
synced 2025-03-13 15:27:07 +08:00
fixed hotkey name localization
This commit is contained in:
parent
372662c787
commit
1695c0b522
@ -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 }),
|
||||
})),
|
||||
]
|
||||
}
|
||||
|
@ -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(
|
||||
|
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user