2
0

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:
Gabriel Pavão
2023-12-29 04:16:00 -03:00
committed by GitHub
parent 28b2b1a60c
commit 81a70d3b70
6 changed files with 18 additions and 11 deletions

View File

@@ -61,7 +61,7 @@ export const ConfirmModal = ({
<AlertDialogFooter>
<Button ref={cancelRef} onClick={onClose}>
Cancel
{t('cancel')}
</Button>
<Button
colorScheme={confirmButtonColor}

View File

@@ -214,7 +214,7 @@ export const TypebotButton = ({
</Alert>
</Stack>
}
confirmButtonLabel="Delete"
confirmButtonLabel={t('delete')}
onConfirm={handleDeleteTypebotClick}
isOpen={isDeleteOpen}
onClose={onDeleteClose}

View File

@@ -96,6 +96,7 @@ export const CreateNewTypebotButtons = () => {
createTypebot({
workspaceId: workspace.id,
typebot: {
name: t('typebots.defaultName'),
folderId,
},
})