1 import { c } from 'ttag';
3 import { DOCS_SHORT_APP_NAME } from '../constants';
4 import { isProtonDocument } from '../helpers/mimetype';
6 export const getNumAccessesTooltipMessage = () =>
7 c('Info').t`The download count includes both actual downloads and instances when files are previewed.`;
8 export const getSizeTooltipMessage = () =>
10 .t`The encrypted data is slightly larger due to the overhead of the encryption and signatures, which ensure the security of your data.`;
13 * Returns `Open` or `Open in Docs` depending on passed `mimeType`.
15 export const getOpenInDocsString = (mimeType: string = '') => {
16 if (isProtonDocument(mimeType)) {
17 // translator: 'Open' action for documents
18 return c('Action').t`Open`;
21 // translator: 'Open in Docs' action
22 return c('Action').t`Open in ${DOCS_SHORT_APP_NAME}`;