Add missing translations (#10414)
As per title, add ~200 missing translations in different places of app. Most places are now available for translation with AI but still some aren't available - some enums (like in MenuItemSelectColor.tsx) or values in complex types (like in SettingsNonCompositeFieldTypeConfigs.ts) or values where are injected some variables (like in SettingsDataModelFieldNumberForm.tsx) --------- Co-authored-by: Félix Malfait <felix@twenty.com>
This commit is contained in:
@ -17,6 +17,7 @@ import {
|
||||
MenuItem,
|
||||
useIcons,
|
||||
} from 'twenty-ui';
|
||||
import { useLingui } from '@lingui/react/macro';
|
||||
|
||||
type ViewPickerOptionDropdownProps = {
|
||||
isIndexView: boolean;
|
||||
@ -31,6 +32,7 @@ export const ViewPickerOptionDropdown = ({
|
||||
view,
|
||||
handleViewSelect,
|
||||
}: ViewPickerOptionDropdownProps) => {
|
||||
const { t } = useLingui();
|
||||
const { closeDropdown } = useDropdown(`view-picker-options-${view.id}`);
|
||||
const { getIcon } = useIcons();
|
||||
const [isHovered, setIsHovered] = useState(false);
|
||||
@ -83,20 +85,20 @@ export const ViewPickerOptionDropdown = ({
|
||||
{isIndexView ? (
|
||||
<MenuItem
|
||||
LeftIcon={IconHeart}
|
||||
text={isFavorite ? 'Manage favorite' : 'Add to Favorite'}
|
||||
text={isFavorite ? t`Manage favorite` : t`Add to Favorite`}
|
||||
onClick={handleAddToFavorites}
|
||||
/>
|
||||
) : (
|
||||
<>
|
||||
<MenuItem
|
||||
LeftIcon={IconHeart}
|
||||
text={isFavorite ? 'Manage favorite' : 'Add to Favorite'}
|
||||
text={isFavorite ? t`Manage favorite` : t`Add to Favorite`}
|
||||
onClick={handleAddToFavorites}
|
||||
/>
|
||||
|
||||
<MenuItem
|
||||
LeftIcon={IconPencil}
|
||||
text="Edit"
|
||||
text={t`Edit`}
|
||||
onClick={(event) => {
|
||||
onEdit(event, view.id);
|
||||
closeDropdown();
|
||||
@ -104,7 +106,7 @@ export const ViewPickerOptionDropdown = ({
|
||||
/>
|
||||
<MenuItem
|
||||
LeftIcon={IconTrash}
|
||||
text="Delete"
|
||||
text={t`Delete`}
|
||||
onClick={handleDelete}
|
||||
accent="danger"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user