[web] Upgrade path GitOrigin-RevId: 532993e613bdc42cf92a7b10e629aa94596d854e
11 lines
270 B
TypeScript
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
|
|
}
|