Typebots page pt-BR translation (#1121)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Enhancements** - Improved internationalization with dynamic translations for "Cancel" and "Delete" labels across modal and button components. - Localized the `name` property during Typebot creation for better user experience in different languages. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Baptiste Arnaud <baptiste.arnaud95@gmail.com>
This commit is contained in:
@@ -61,7 +61,7 @@ export const ConfirmModal = ({
|
||||
|
||||
<AlertDialogFooter>
|
||||
<Button ref={cancelRef} onClick={onClose}>
|
||||
Cancel
|
||||
{t('cancel')}
|
||||
</Button>
|
||||
<Button
|
||||
colorScheme={confirmButtonColor}
|
||||
|
||||
@@ -214,7 +214,7 @@ export const TypebotButton = ({
|
||||
</Alert>
|
||||
</Stack>
|
||||
}
|
||||
confirmButtonLabel="Delete"
|
||||
confirmButtonLabel={t('delete')}
|
||||
onConfirm={handleDeleteTypebotClick}
|
||||
isOpen={isDeleteOpen}
|
||||
onClose={onDeleteClose}
|
||||
|
||||
@@ -96,6 +96,7 @@ export const CreateNewTypebotButtons = () => {
|
||||
createTypebot({
|
||||
workspaceId: workspace.id,
|
||||
typebot: {
|
||||
name: t('typebots.defaultName'),
|
||||
folderId,
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user