Files
overleaf-cep/services/web/frontend/js/features/subscription/util/plan-display-names.ts
Olzhas Askar 823f11426b Merge pull request #33109 from overleaf/oa-upgrade-path
[web] Upgrade path

GitOrigin-RevId: 532993e613bdc42cf92a7b10e629aa94596d854e
2026-05-01 08:07:01 +00:00

11 lines
270 B
TypeScript

import { TFunction } from 'i18next'
export function getUpgradePlanDisplayName(
planCode: string,
t: TFunction
): string {
if (planCode.startsWith('professional')) return t('pro')
if (planCode.startsWith('collaborator')) return t('standard')
return planCode
}