mirror of
https://github.com/documenso/documenso.git
synced 2026-07-25 17:35:05 +10:00
fix(i18n): mark document visibility strings for translation (#2263)
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import React, { forwardRef } from 'react';
|
import React, { forwardRef } from 'react';
|
||||||
|
|
||||||
import { useLingui } from '@lingui/react/macro';
|
import { Trans, useLingui } from '@lingui/react/macro';
|
||||||
import { TeamMemberRole } from '@prisma/client';
|
import { TeamMemberRole } from '@prisma/client';
|
||||||
import type { SelectProps } from '@radix-ui/react-select';
|
import type { SelectProps } from '@radix-ui/react-select';
|
||||||
import { InfoIcon } from 'lucide-react';
|
import { InfoIcon } from 'lucide-react';
|
||||||
@@ -70,21 +70,31 @@ export const DocumentVisibilityTooltip = () => {
|
|||||||
|
|
||||||
<TooltipContent className="text-foreground max-w-md space-y-2 p-4">
|
<TooltipContent className="text-foreground max-w-md space-y-2 p-4">
|
||||||
<h2>
|
<h2>
|
||||||
<strong>Document visibility</strong>
|
<strong>
|
||||||
|
<Trans>Document visibility</Trans>
|
||||||
|
</strong>
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<p>The visibility of the document to the recipient.</p>
|
<p>
|
||||||
|
<Trans>The visibility of the document to the recipient.</Trans>
|
||||||
|
</p>
|
||||||
|
|
||||||
<ul className="ml-3.5 list-outside list-disc space-y-0.5 py-2">
|
<ul className="ml-3.5 list-outside list-disc space-y-0.5 py-2">
|
||||||
<li>
|
<li>
|
||||||
<strong>Everyone</strong> - Everyone can access and view the document
|
<Trans>
|
||||||
|
<strong>Everyone</strong> - Everyone can access and view the document
|
||||||
|
</Trans>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<strong>Managers and above</strong> - Only managers and above can access and view the
|
<Trans>
|
||||||
document
|
<strong>Managers and above</strong> - Only managers and above can access and view the
|
||||||
|
document
|
||||||
|
</Trans>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<strong>Admins only</strong> - Only admins can access and view the document
|
<Trans>
|
||||||
|
<strong>Admins only</strong> - Only admins can access and view the document
|
||||||
|
</Trans>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</TooltipContent>
|
</TooltipContent>
|
||||||
|
|||||||
@@ -312,7 +312,7 @@ export const AddSettingsFormPartial = ({
|
|||||||
render={({ field }) => (
|
render={({ field }) => (
|
||||||
<FormItem>
|
<FormItem>
|
||||||
<FormLabel className="flex flex-row items-center">
|
<FormLabel className="flex flex-row items-center">
|
||||||
Document visibility
|
<Trans>Document visibility</Trans>
|
||||||
<DocumentVisibilityTooltip />
|
<DocumentVisibilityTooltip />
|
||||||
</FormLabel>
|
</FormLabel>
|
||||||
|
|
||||||
|
|||||||
@@ -305,7 +305,7 @@ export const AddTemplateSettingsFormPartial = ({
|
|||||||
render={({ field }) => (
|
render={({ field }) => (
|
||||||
<FormItem>
|
<FormItem>
|
||||||
<FormLabel className="flex flex-row items-center">
|
<FormLabel className="flex flex-row items-center">
|
||||||
Document visibility
|
<Trans>Document visibility</Trans>
|
||||||
<DocumentVisibilityTooltip />
|
<DocumentVisibilityTooltip />
|
||||||
</FormLabel>
|
</FormLabel>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user