locale updates, added Italian

This commit is contained in:
Eugene Pankov
2022-02-10 16:24:24 +01:00
parent 762ee85773
commit 46a9b655fc
10 changed files with 1553 additions and 24 deletions

View File

@@ -1,3 +1,4 @@
import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker'
import colors from 'ansi-colors'
import { Component, Injector } from '@angular/core'
import { first } from 'rxjs'
@@ -54,7 +55,7 @@ export class TelnetTabComponent extends BaseTerminalTabComponent {
// Session was closed abruptly
if (!this.reconnectOffered) {
this.reconnectOffered = true
this.write(this.translate.instant('Press any key to reconnect') + '\r\n')
this.write(this.translate.instant(_('Press any key to reconnect')) + '\r\n')
this.input$.pipe(first()).subscribe(() => {
if (!this.session?.open && this.reconnectOffered) {
this.reconnect()
@@ -77,7 +78,7 @@ export class TelnetTabComponent extends BaseTerminalTabComponent {
this.setSession(session)
try {
this.startSpinner(this.translate.instant('Connecting'))
this.startSpinner(this.translate.instant(_('Connecting')))
this.attachSessionHandler(session.serviceMessage$, msg => {
this.write(`\r${colors.black.bgWhite(' Telnet ')} ${msg}\r\n`)
@@ -118,10 +119,10 @@ export class TelnetTabComponent extends BaseTerminalTabComponent {
return (await this.platform.showMessageBox(
{
type: 'warning',
message: this.translate.instant('Disconnect from {host}?', this.profile?.options),
message: this.translate.instant(_('Disconnect from {host}?'), this.profile?.options),
buttons: [
this.translate.instant('Disconnect'),
this.translate.instant('Do not close'),
this.translate.instant(_('Disconnect')),
this.translate.instant(_('Do not close')),
],
defaultId: 0,
cancelId: 1,