mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 10:21:52 +00:00
frontend fixes for alpha.2 (#2919)
* rmeove icon from toggles * fix: comments * fix: more comments * always show public domains even if interface private, only show delete on domains * fix: even more comments * fix: last comments * feat: empty state for dashboard * rework welcome, dlete update-toast, minor * translation improvements --------- Co-authored-by: waterplea <alexander@inkin.ru>
This commit is contained in:
@@ -441,7 +441,7 @@ export default {
|
||||
438: 'Kein Internet',
|
||||
439: 'Verbindung wird hergestellt',
|
||||
440: 'Fährt herunter',
|
||||
441: 'Versionen',
|
||||
441: 'Alle versionen',
|
||||
442: 'Neue Benachrichtigungen',
|
||||
443: 'Anzeigen',
|
||||
444: 'PWA wird neu geladen',
|
||||
@@ -498,4 +498,9 @@ export default {
|
||||
495: 'Validierung',
|
||||
496: 'in Bearbeitung',
|
||||
497: 'abgeschlossen',
|
||||
498: 'Klicken Sie hier, um alle Versionen anzuzeigen',
|
||||
499: 'Um loszulegen, besuche den Marktplatz und lade deinen ersten Dienst herunter',
|
||||
500: 'Marktplatz anzeigen',
|
||||
501: 'Willkommen bei',
|
||||
502: 'souveränes computing',
|
||||
} satisfies i18n
|
||||
|
||||
@@ -282,7 +282,7 @@ export const ENGLISH = {
|
||||
'Donation Link': 280,
|
||||
'Standard Actions': 281,
|
||||
'Rebuild Service': 282, // as in, rebuild a software container
|
||||
'Rebuilds the service container. Only necessary in there is a bug in StartOS': 283,
|
||||
'Rebuilds the service container. Only necessary if there is a bug in StartOS': 283,
|
||||
'Uninstall': 284,
|
||||
'Uninstalls this service from StartOS and delete all data permanently.': 285,
|
||||
'Dashboard': 286,
|
||||
@@ -440,7 +440,7 @@ export const ENGLISH = {
|
||||
'No Internet': 438,
|
||||
'Connecting': 439,
|
||||
'Shutting down': 440,
|
||||
'Versions': 441,
|
||||
'All versions': 441,
|
||||
'New notifications': 442,
|
||||
'View': 443,
|
||||
'Reloading PWA': 444,
|
||||
@@ -497,4 +497,9 @@ export const ENGLISH = {
|
||||
'Validating': 495,
|
||||
'in progress': 496,
|
||||
'complete': 497,
|
||||
'Click to view all versions': 498,
|
||||
'To get started, visit the Marketplace and download your first service': 499,
|
||||
'View Marketplace': 500,
|
||||
'Welcome to': 501,
|
||||
'sovereign computing': 502,
|
||||
} as const
|
||||
|
||||
@@ -441,7 +441,7 @@ export default {
|
||||
438: 'Sin Internet',
|
||||
439: 'Conectando',
|
||||
440: 'Apagando',
|
||||
441: 'Versiones',
|
||||
441: 'Todas las versiones',
|
||||
442: 'Nuevas notificaciones',
|
||||
443: 'Ver',
|
||||
444: 'Recargando PWA',
|
||||
@@ -498,4 +498,9 @@ export default {
|
||||
495: 'Validando',
|
||||
496: 'en progreso',
|
||||
497: 'completo',
|
||||
498: 'Haga clic para ver todas las versiones',
|
||||
499: 'Para comenzar, visita el Mercado y descarga tu primer servicio',
|
||||
500: 'Ver Marketplace',
|
||||
501: 'Bienvenido a',
|
||||
502: 'computación soberana',
|
||||
} satisfies i18n
|
||||
|
||||
@@ -441,7 +441,7 @@ export default {
|
||||
438: 'Brak Internetu',
|
||||
439: 'Łączenie',
|
||||
440: 'Wyłączanie',
|
||||
441: 'Wersje',
|
||||
441: 'Wszystkie wersje',
|
||||
442: 'Nowe powiadomienia',
|
||||
443: 'Zobacz',
|
||||
444: 'Przeładowywanie PWA',
|
||||
@@ -498,4 +498,9 @@ export default {
|
||||
495: 'Weryfikowanie',
|
||||
496: 'w toku',
|
||||
497: 'zakończono',
|
||||
498: 'Kliknij, aby zobaczyć wszystkie wersje',
|
||||
499: 'Aby rozpocząć, odwiedź Marketplace i pobierz swoją pierwszą usługę',
|
||||
500: 'Zobacz Rynek',
|
||||
501: 'Witamy w',
|
||||
502: 'suwerenne przetwarzanie',
|
||||
} satisfies i18n
|
||||
|
||||
@@ -11,9 +11,11 @@ import { I18N, i18nKey } from './i18n.providers'
|
||||
export class i18nPipe implements PipeTransform {
|
||||
private readonly i18n = inject(I18N)
|
||||
|
||||
transform(englishKey: i18nKey | null | undefined): string | undefined {
|
||||
// @TODO uncomment to make sure translations are present
|
||||
transform(englishKey: string | null | undefined): string | undefined {
|
||||
// transform(englishKey: i18nKey | null | undefined): string | undefined {
|
||||
return englishKey
|
||||
? this.i18n()?.[ENGLISH[englishKey]] || englishKey
|
||||
? this.i18n()?.[ENGLISH[englishKey as i18nKey]] || englishKey
|
||||
: undefined
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,7 +3,6 @@ import {
|
||||
TuiResponsiveDialogOptions,
|
||||
TuiResponsiveDialogService,
|
||||
} from '@taiga-ui/addon-mobile'
|
||||
import { TuiAlertOptions } from '@taiga-ui/core'
|
||||
import { TUI_CONFIRM, TuiConfirmData } from '@taiga-ui/kit'
|
||||
import { PolymorpheusComponent } from '@taiga-ui/polymorpheus'
|
||||
import { PROMPT, PromptOptions } from '../components/prompt.component'
|
||||
@@ -63,7 +62,7 @@ export class DialogService {
|
||||
|
||||
openAlert<T = void>(
|
||||
message: i18nKey | undefined,
|
||||
options: Partial<TuiAlertOptions<any>> & {
|
||||
options: Partial<TuiResponsiveDialogOptions<any>> & {
|
||||
label?: i18nKey
|
||||
} = {},
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user