🌐 Add it translations

This commit is contained in:
Baptiste Arnaud
2024-01-19 10:16:09 +01:00
parent f4d315fed5
commit 29bd5f1539
11 changed files with 613 additions and 10 deletions

View File

@@ -27,6 +27,7 @@ const localeHumanReadable = {
'pt-BR': 'Português (BR)',
ro: 'Română',
es: 'Español',
it: 'Italiano',
} as const
export const UserPreferencesForm = () => {

View File

@@ -1,17 +1,14 @@
import React from 'react'
import { Text } from '@chakra-ui/react'
import { WithVariableContent } from '@/features/graph/components/nodes/block/WithVariableContent'
import { useTranslate } from '@tolgee/react'
type Props = {
variableId?: string
}
export const DateNodeContent = ({ variableId }: Props) => {
const { t } = useTranslate()
return variableId ? (
<WithVariableContent variableId={variableId} />
) : (
<Text color={'gray.500'}>{t('blocks.inputs.date.placeholder.label')}</Text>
<Text color={'gray.500'}>Pick a date</Text>
)
}