mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
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
|
|
}
|