diff options
Diffstat (limited to 'frontend/src/plugin.ts')
| -rw-r--r-- | frontend/src/plugin.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/frontend/src/plugin.ts b/frontend/src/plugin.ts index 0a6ae7aa..0035990e 100644 --- a/frontend/src/plugin.ts +++ b/frontend/src/plugin.ts @@ -18,8 +18,20 @@ export enum InstallType { INSTALL, REINSTALL, UPDATE, + DOWNGRADE, + OVERWRITE, } +// values are the JSON keys used in the translation file +// IMPORTANT! keep in sync with `t(...)` comments where this is used +export const InstallTypeTranslationMapping = { + [InstallType.INSTALL]: 'install', + [InstallType.REINSTALL]: 'reinstall', + [InstallType.UPDATE]: 'update', + [InstallType.DOWNGRADE]: 'downgrade', + [InstallType.OVERWRITE]: 'overwrite', +} as const satisfies Record<InstallType, string>; + type installPluginArgs = [ artifact: string, name?: string, |
