mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-10 06:39:01 +02:00
823f11426b
[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
|
|
}
|