mirror of
https://github.com/Eugeny/tabby.git
synced 2025-09-24 09:06:03 +00:00
show language selector in welcome tab
This commit is contained in:
@@ -6,6 +6,16 @@
|
|||||||
|
|
||||||
.text-center.mb-5(translate) Thank you for downloading Tabby!
|
.text-center.mb-5(translate) Thank you for downloading Tabby!
|
||||||
|
|
||||||
|
.form-line
|
||||||
|
.header
|
||||||
|
.title(translate) Language
|
||||||
|
select.form-control([(ngModel)]='config.store.language', (ngModelChange)='config.save()')
|
||||||
|
option([ngValue]='null', translate) Automatic
|
||||||
|
option(
|
||||||
|
[value]='lang.code',
|
||||||
|
*ngFor='let lang of locale.allLanguages'
|
||||||
|
) {{lang.name|translate}}
|
||||||
|
|
||||||
.form-line
|
.form-line
|
||||||
.header
|
.header
|
||||||
.title(translate) Enable analytics
|
.title(translate) Enable analytics
|
||||||
|
@@ -3,6 +3,7 @@ import { Component } from '@angular/core'
|
|||||||
import { TranslateService } from '@ngx-translate/core'
|
import { TranslateService } from '@ngx-translate/core'
|
||||||
import { BaseTabComponent } from './baseTab.component'
|
import { BaseTabComponent } from './baseTab.component'
|
||||||
import { ConfigService } from '../services/config.service'
|
import { ConfigService } from '../services/config.service'
|
||||||
|
import { LocaleService } from '../services/locale.service'
|
||||||
import { HostWindowService } from '../api/hostWindow'
|
import { HostWindowService } from '../api/hostWindow'
|
||||||
|
|
||||||
/** @hidden */
|
/** @hidden */
|
||||||
@@ -17,6 +18,7 @@ export class WelcomeTabComponent extends BaseTabComponent {
|
|||||||
constructor (
|
constructor (
|
||||||
private hostWindow: HostWindowService,
|
private hostWindow: HostWindowService,
|
||||||
public config: ConfigService,
|
public config: ConfigService,
|
||||||
|
public locale: LocaleService,
|
||||||
translate: TranslateService,
|
translate: TranslateService,
|
||||||
) {
|
) {
|
||||||
super()
|
super()
|
||||||
@@ -30,6 +32,6 @@ export class WelcomeTabComponent extends BaseTabComponent {
|
|||||||
this.config.store.hotkeys['toggle-window'] = []
|
this.config.store.hotkeys['toggle-window'] = []
|
||||||
}
|
}
|
||||||
await this.config.save()
|
await this.config.save()
|
||||||
this.hostWindow.reload()
|
this.destroy()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user