mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
Refactor i18n approach (#2875)
* Refactor i18n approach * chore: move to shared * chore: add default * create DialogService and update LoadingService (#2876) * complete translation infra for ui project, currently broken * cleanup and more dictionaries * chore: fix --------- Co-authored-by: Matt Hill <MattDHill@users.noreply.github.com> Co-authored-by: Matt Hill <mattnine@protonmail.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { PackageDataEntry } from 'src/app/services/patch-db/data-model'
|
||||
import { PkgDependencyErrors } from './dep-error.service'
|
||||
import { T } from '@start9labs/start-sdk'
|
||||
import { i18nKey } from '@start9labs/shared'
|
||||
|
||||
export interface PackageStatus {
|
||||
primary: PrimaryStatus
|
||||
@@ -65,7 +66,7 @@ function getHealthStatus(status: T.MainStatus): T.HealthStatus | null {
|
||||
}
|
||||
|
||||
export interface StatusRendering {
|
||||
display: string
|
||||
display: i18nKey
|
||||
color: string
|
||||
showDots?: boolean
|
||||
}
|
||||
@@ -138,7 +139,7 @@ export const PrimaryRendering: Record<PrimaryStatus, StatusRendering> = {
|
||||
showDots: false,
|
||||
},
|
||||
actionRequired: {
|
||||
display: 'Action Required',
|
||||
display: 'Task Required',
|
||||
color: 'warning',
|
||||
showDots: false,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user