plan-display-names.ts 270 B

12345678910
  1. import { TFunction } from 'i18next'
  2. export function getUpgradePlanDisplayName(
  3. planCode: string,
  4. t: TFunction
  5. ): string {
  6. if (planCode.startsWith('professional')) return t('pro')
  7. if (planCode.startsWith('collaborator')) return t('standard')
  8. return planCode
  9. }