better i18n checks, better action disabled, fix cert download for ios

This commit is contained in:
Matt Hill
2026-01-30 10:59:27 -07:00
parent 113b09ad01
commit 60875644a1
8 changed files with 152 additions and 72 deletions

View File

@@ -1,5 +1,5 @@
// prettier-ignore
export const ENGLISH = {
export const ENGLISH: Record<string, number> = {
'Change': 1, // verb
'Update': 2, // verb
'System': 4, // as in, system preferences
@@ -680,4 +680,4 @@ export const ENGLISH = {
'Installation Complete!': 714,
'StartOS has been installed successfully.': 715,
'Continue to Setup': 716,
} as const
}

View File

@@ -13,6 +13,8 @@ export class i18nPipe implements PipeTransform {
transform(englishKey: i18nKey | null | undefined | ''): string {
englishKey = englishKey || ('' as i18nKey)
return this.i18n()?.[ENGLISH[englishKey]] || englishKey
const id = ENGLISH[englishKey]
return (id !== undefined && this.i18n()?.[id]) || englishKey
}
}