diff --git a/web/projects/shared/src/i18n/dictionaries/de.ts b/web/projects/shared/src/i18n/dictionaries/de.ts index 9a61bab97..90cde9eb0 100644 --- a/web/projects/shared/src/i18n/dictionaries/de.ts +++ b/web/projects/shared/src/i18n/dictionaries/de.ts @@ -143,7 +143,7 @@ export default { 140: 'Diagnose-Logs des Tor-Daemons unter StartOS', 141: 'Downgrade', 142: 'Neu installieren', - 143: 'Installierte anzeigen', + 143: 'Installierte', 144: 'Wechseln', 145: 'Installieren', 146: 'Installation wird gestartet', diff --git a/web/projects/shared/src/i18n/dictionaries/en.ts b/web/projects/shared/src/i18n/dictionaries/en.ts index 6464837e5..49adf3f0e 100644 --- a/web/projects/shared/src/i18n/dictionaries/en.ts +++ b/web/projects/shared/src/i18n/dictionaries/en.ts @@ -142,7 +142,7 @@ export const ENGLISH = { 'Diagnostic logs for the Tor daemon on StartOS': 140, 'Downgrade': 141, 'Reinstall': 142, - 'View Installed': 143, + 'Installed': 143, 'Switch': 144, 'Install': 145, 'Beginning install': 146, diff --git a/web/projects/shared/src/i18n/dictionaries/es.ts b/web/projects/shared/src/i18n/dictionaries/es.ts index c8e5cb8be..bc16c4b19 100644 --- a/web/projects/shared/src/i18n/dictionaries/es.ts +++ b/web/projects/shared/src/i18n/dictionaries/es.ts @@ -143,7 +143,7 @@ export default { 140: 'Registros de diagnóstico del servicio Tor en StartOS', 141: 'Retroceder versión', 142: 'Reinstalar', - 143: 'Ver instalados', + 143: 'Instalados', 144: 'Cambiar', 145: 'Instalar', 146: 'Iniciando instalación', diff --git a/web/projects/shared/src/i18n/dictionaries/pl.ts b/web/projects/shared/src/i18n/dictionaries/pl.ts index bc2b6c064..4fb6aa6be 100644 --- a/web/projects/shared/src/i18n/dictionaries/pl.ts +++ b/web/projects/shared/src/i18n/dictionaries/pl.ts @@ -143,7 +143,7 @@ export default { 140: 'Logi diagnostyczne usługi Tor w StartOS', 141: 'Przywróć starszą wersję', 142: 'Zainstaluj ponownie', - 143: 'Zobacz zainstalowane', + 143: 'Zainstalowane', 144: 'Przełącz', 145: 'Zainstaluj', 146: 'Rozpoczynanie instalacji', diff --git a/web/projects/shared/src/i18n/i18n.pipe.ts b/web/projects/shared/src/i18n/i18n.pipe.ts index 100c43f12..6ff5f8abc 100644 --- a/web/projects/shared/src/i18n/i18n.pipe.ts +++ b/web/projects/shared/src/i18n/i18n.pipe.ts @@ -12,8 +12,8 @@ export class i18nPipe implements PipeTransform { private readonly i18n = inject(I18N) // @TODO uncomment to make sure translations are present - transform(englishKey: string | null | undefined): string | undefined { - // transform(englishKey: i18nKey | null | undefined): string | undefined { + // transform(englishKey: string | null | undefined): string | undefined { + transform(englishKey: i18nKey | null | undefined): string | undefined { return englishKey ? this.i18n()?.[ENGLISH[englishKey as i18nKey]] || englishKey : undefined diff --git a/web/projects/ui/src/app/routes/portal/routes/marketplace/components/controls.component.ts b/web/projects/ui/src/app/routes/portal/routes/marketplace/components/controls.component.ts index a08939779..9d832fdfe 100644 --- a/web/projects/ui/src/app/routes/portal/routes/marketplace/components/controls.component.ts +++ b/web/projects/ui/src/app/routes/portal/routes/marketplace/components/controls.component.ts @@ -1,5 +1,5 @@ import { TuiButton } from '@taiga-ui/core' -import { CommonModule } from '@angular/common' +import { CommonModule, TitleCasePipe } from '@angular/common' import { ChangeDetectionStrategy, Component, @@ -35,10 +35,7 @@ import { ApiService } from 'src/app/services/api/embassy-api.service' selector: 'marketplace-controls', template: ` @if (localPkg) { - @if ( - localPkg.stateInfo.state === 'installed' && (localPkg | toManifest); - as localManifest - ) { + @if (localPkg | toManifest; as localManifest) { @switch (localManifest.version | compareExver: pkg.version) { @case (1) { } @else {