mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 00:03:33 +10:00
Compare commits
2 Commits
7e38d06ef5
...
feat/add-p
| Author | SHA1 | Date | |
|---|---|---|---|
| 3e1ef92596 | |||
| c305944014 |
@ -1,6 +1,6 @@
|
|||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
export const SUPPORTED_LANGUAGE_CODES = ['de', 'en', 'fr', 'es'] as const;
|
export const SUPPORTED_LANGUAGE_CODES = ['de', 'en', 'fr', 'es', 'pl'] as const;
|
||||||
|
|
||||||
export const ZSupportedLanguageCodeSchema = z.enum(SUPPORTED_LANGUAGE_CODES).catch('en');
|
export const ZSupportedLanguageCodeSchema = z.enum(SUPPORTED_LANGUAGE_CODES).catch('en');
|
||||||
|
|
||||||
@ -46,6 +46,10 @@ export const SUPPORTED_LANGUAGES: Record<string, SupportedLanguage> = {
|
|||||||
full: 'Spanish',
|
full: 'Spanish',
|
||||||
short: 'es',
|
short: 'es',
|
||||||
},
|
},
|
||||||
|
pl: {
|
||||||
|
full: 'Polish',
|
||||||
|
short: 'pl',
|
||||||
|
},
|
||||||
} satisfies Record<SupportedLanguageCodes, SupportedLanguage>;
|
} satisfies Record<SupportedLanguageCodes, SupportedLanguage>;
|
||||||
|
|
||||||
export const isValidLanguageCode = (code: unknown): code is SupportedLanguageCodes =>
|
export const isValidLanguageCode = (code: unknown): code is SupportedLanguageCodes =>
|
||||||
|
|||||||
@ -180,9 +180,11 @@ export const AddSettingsFormPartial = ({
|
|||||||
</TooltipTrigger>
|
</TooltipTrigger>
|
||||||
|
|
||||||
<TooltipContent className="text-foreground max-w-md space-y-2 p-4">
|
<TooltipContent className="text-foreground max-w-md space-y-2 p-4">
|
||||||
|
<Trans>
|
||||||
Controls the language for the document, including the language to be used
|
Controls the language for the document, including the language to be used
|
||||||
for email notifications, and the final certificate that is generated and
|
for email notifications, and the final certificate that is generated and
|
||||||
attached to the document.
|
attached to the document.
|
||||||
|
</Trans>
|
||||||
</TooltipContent>
|
</TooltipContent>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</FormLabel>
|
</FormLabel>
|
||||||
|
|||||||
@ -166,9 +166,11 @@ export const AddTemplateSettingsFormPartial = ({
|
|||||||
</TooltipTrigger>
|
</TooltipTrigger>
|
||||||
|
|
||||||
<TooltipContent className="text-foreground max-w-md space-y-2 p-4">
|
<TooltipContent className="text-foreground max-w-md space-y-2 p-4">
|
||||||
|
<Trans>
|
||||||
Controls the language for the document, including the language to be used
|
Controls the language for the document, including the language to be used
|
||||||
for email notifications, and the final certificate that is generated and
|
for email notifications, and the final certificate that is generated and
|
||||||
attached to the document.
|
attached to the document.
|
||||||
|
</Trans>
|
||||||
</TooltipContent>
|
</TooltipContent>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</FormLabel>
|
</FormLabel>
|
||||||
|
|||||||
Reference in New Issue
Block a user