Fix/controls (#2938)

* adjust copy to display package state

* use package id for service column in notifications table

* fixes

* less translations, fix notificaiton item, remove unnecessary conditional

* tidy up

* forgot spanish

---------

Co-authored-by: Matt Hill <mattnine@protonmail.com>
This commit is contained in:
Lucy
2025-05-09 16:53:46 -04:00
committed by GitHub
parent 8bd71ccd5e
commit 3849d0d1a9
7 changed files with 17 additions and 13 deletions

View File

@@ -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',

View File

@@ -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,

View File

@@ -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',

View File

@@ -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',

View File

@@ -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