mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
(mostly) redundant localization on frontend
This commit is contained in:
@@ -14,6 +14,7 @@ import {
|
||||
Exver,
|
||||
ExverPipesModule,
|
||||
i18nPipe,
|
||||
i18nService,
|
||||
LoadingService,
|
||||
sameUrl,
|
||||
} from '@start9labs/shared'
|
||||
@@ -122,6 +123,7 @@ export class MarketplaceControlsComponent {
|
||||
private readonly router = inject(Router)
|
||||
private readonly marketplace = inject(MarketplaceService)
|
||||
private readonly api = inject(ApiService)
|
||||
private readonly i18n = inject(i18nService)
|
||||
|
||||
readonly pkg = input.required<Pick<MarketplacePkg, KEYS>>()
|
||||
|
||||
@@ -148,7 +150,7 @@ export class MarketplaceControlsComponent {
|
||||
const originalUrl = localPkg?.registry || null
|
||||
|
||||
if (!localPkg) {
|
||||
if (await this.alerts.alertInstall(this.pkg().alerts.install || '')) {
|
||||
if (await this.alerts.alertInstall(this.i18n.localize(this.pkg().alerts.install || ''))) {
|
||||
this.installOrUpload(currentUrl)
|
||||
}
|
||||
return
|
||||
|
||||
@@ -12,6 +12,7 @@ import {
|
||||
DialogService,
|
||||
i18nKey,
|
||||
i18nPipe,
|
||||
LocalizePipe,
|
||||
MarkdownPipe,
|
||||
SafeLinksDirective,
|
||||
} from '@start9labs/shared'
|
||||
@@ -138,7 +139,7 @@ import UpdatesComponent from './updates.component'
|
||||
</p>
|
||||
<p
|
||||
safeLinks
|
||||
[innerHTML]="item().releaseNotes | markdown | dompurify"
|
||||
[innerHTML]="item().releaseNotes | localize | markdown | dompurify"
|
||||
></p>
|
||||
</tui-expand>
|
||||
</td>
|
||||
@@ -237,6 +238,7 @@ import UpdatesComponent from './updates.component'
|
||||
TuiProgressCircle,
|
||||
TuiTitle,
|
||||
TuiFade,
|
||||
LocalizePipe,
|
||||
MarkdownPipe,
|
||||
NgDompurifyPipe,
|
||||
SafeLinksDirective,
|
||||
|
||||
Reference in New Issue
Block a user