Add more translations (#9707)

As per title
This commit is contained in:
Félix Malfait
2025-01-17 12:50:28 +01:00
committed by GitHub
parent 55feeaeef1
commit f38a25412e
43 changed files with 2895 additions and 651 deletions

View File

@ -1,5 +1,7 @@
import { useTheme } from '@emotion/react';
import styled from '@emotion/styled';
import { useLingui } from '@lingui/react/macro';
import { isNonEmptyString } from '@sniptt/guards';
import React from 'react';
import { getImageAbsoluteURI } from 'twenty-shared';
@ -105,6 +107,7 @@ export const ImageInput = ({
disabled = false,
className,
}: ImageInputProps) => {
const { t } = useLingui();
const theme = useTheme();
const hiddenFileInput = React.useRef<HTMLInputElement>(null);
const onUploadButtonClick = () => {
@ -151,7 +154,7 @@ export const ImageInput = ({
Icon={IconX}
onClick={onAbort}
variant="secondary"
title="Abort"
title={t`Abort`}
disabled={!pictureURI || disabled}
/>
) : (
@ -159,7 +162,7 @@ export const ImageInput = ({
Icon={IconUpload}
onClick={onUploadButtonClick}
variant="secondary"
title="Upload"
title={t`Upload`}
disabled={disabled}
/>
)}
@ -167,7 +170,7 @@ export const ImageInput = ({
Icon={IconTrash}
onClick={onRemove}
variant="secondary"
title="Remove"
title={t`Remove`}
disabled={!pictureURI || disabled}
/>
</StyledButtonContainer>