mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-02 05:23:14 +00:00
better i18n checks, better action disabled, fix cert download for ios
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user