Update selected item color in Pass menu
[ProtonMail-WebClient.git] / packages / pass / lib / i18n / helpers.ts
blob01c17c6d0e9d87290aabdb9ac5f503017ea1687b
1 import { c, msgid } from 'ttag';
3 import type { MaybeNull } from '@proton/pass/types';
5 export const getOccurrenceString = (count: number) => c('Info').ngettext(msgid`${count} time`, `${count} times`, count);
6 export const getViewCountString = (count: number, maxReads: MaybeNull<number>) =>
7     maxReads
8         ? c('Info').t`${count}/${maxReads} views`
9         : c('Info').ngettext(msgid`${count} view`, `${count} views`, count);