Compare commits

...

2 Commits

Author SHA1 Message Date
3e1ef92596 fix: missing trans tags 2024-11-12 15:59:04 +07:00
c305944014 feat: add polish translations 2024-11-12 15:50:47 +07:00
3 changed files with 15 additions and 7 deletions

View File

@ -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 =>

View File

@ -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">
Controls the language for the document, including the language to be used <Trans>
for email notifications, and the final certificate that is generated and Controls the language for the document, including the language to be used
attached to the document. for email notifications, and the final certificate that is generated and
attached to the document.
</Trans>
</TooltipContent> </TooltipContent>
</Tooltip> </Tooltip>
</FormLabel> </FormLabel>

View File

@ -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">
Controls the language for the document, including the language to be used <Trans>
for email notifications, and the final certificate that is generated and Controls the language for the document, including the language to be used
attached to the document. for email notifications, and the final certificate that is generated and
attached to the document.
</Trans>
</TooltipContent> </TooltipContent>
</Tooltip> </Tooltip>
</FormLabel> </FormLabel>