Skip to content

Commit

Permalink
Typebots page pt-BR translation (#1121)
Browse files Browse the repository at this point in the history
<!-- 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>
  • Loading branch information
gabrielgpavao and baptisteArno authored Dec 29, 2023
1 parent 28b2b1a commit 81a70d3
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 11 deletions.
20 changes: 11 additions & 9 deletions apps/builder/public/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@
"pending": "Pending",
"preview.restartButton.label": "Restart",
"publish.error.label": "Error while publishing typebot",
"publish.versionWarning.checkBreakingChanges": "Make sure to check out all the <link>associated breaking changes</link>",
"publish.versionWarning.message.aboutToDeploy.label": "You are about to a deploy a version of your bot with an updated engine. (Typebot V6).",
"publish.versionWarning.message.breakingChanges.label": "associated breaking changes",
"publish.versionWarning.message.check.label": "Make sure to check out all the",
Expand All @@ -253,6 +254,8 @@
"publishButton.label": "Publish",
"publishButton.published.label": "Published",
"publishButton.tooltip.nonPublishedChanges.label": "There are non published changes.",
"publishButton.tooltip.publishedVersion.ago.label": "ago",
"publishButton.tooltip.publishedVersion.from.label": "Published version from {timeSince}.",
"remove": "Remove",
"share.button.label": "Share",
"share.button.popover.ariaLabel": "Open share popover",
Expand All @@ -273,6 +276,13 @@
"templates.modal.menuHeading.other": "Other",
"templates.modal.menuHeading.product": "Product",
"templates.modal.useTemplateButton.label": "Use this template",
"timeSince.days": "{count}d ago",
"timeSince.hours": "{count}h ago",
"timeSince.minutes": "{count}m ago",
"timeSince.months": "{count} months ago",
"timeSince.seconds": "{count}s ago",
"timeSince.years": "{count} years ago",
"typebots.defaultName": "My typebot",
"upgrade": "Upgrade",
"variables.button.searchInput.placeholder": "Search for a variable",
"variables.button.tooltip": "Insert a variable",
Expand All @@ -298,13 +308,5 @@
"workspace.settings.modal.menu.settings.label": "Settings",
"workspace.settings.modal.menu.version.label": "Version: {version}",
"workspace.settings.modal.menu.workspace.label": "Workspace",
"workspace.settings.name.label": "Name:",
"timeSince.years": "{count} years ago",
"timeSince.months": "{count} months ago",
"timeSince.days": "{count}d ago",
"timeSince.hours": "{count}h ago",
"timeSince.minutes": "{count}m ago",
"timeSince.seconds": "{count}s ago",
"publishButton.tooltip.publishedVersion.from.label": "Published version from {timeSince}.",
"publish.versionWarning.checkBreakingChanges": "Make sure to check out all the <link>associated breaking changes</link>"
"workspace.settings.name.label": "Name:"
}
1 change: 1 addition & 0 deletions apps/builder/public/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@
"templates.modal.menuHeading.other": "Autre",
"templates.modal.menuHeading.product": "Produit",
"templates.modal.useTemplateButton.label": "Utiliser ce modèle",
"typebots.defaultName": "Mon typebot",
"upgrade": "Upgrade",
"video.aspectRatioInput.label": "Ratio",
"video.aspectRatioInput.moreInfoTooltip": "Exemple: \"16/9\" ou \"9/16\"",
Expand Down
3 changes: 3 additions & 0 deletions apps/builder/public/locales/pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,8 @@
"publishButton.label": "Publicar",
"publishButton.published.label": "Publicado",
"publishButton.tooltip.nonPublishedChanges.label": "Existem alterações não publicadas.",
"publishButton.tooltip.publishedVersion.ago.label": "atrás",
"publishButton.tooltip.publishedVersion.from.label": "Versão publicada de {timeSince}.",
"remove": "Remover",
"share.button.label": "Compartilhar",
"share.button.popover.ariaLabel": "Abrir popover de compartilhamento",
Expand All @@ -273,6 +275,7 @@
"templates.modal.menuHeading.other": "Outros",
"templates.modal.menuHeading.product": "Produto",
"templates.modal.useTemplateButton.label": "Usar esse modelo",
"typebots.defaultName": "Meu typebot",
"upgrade": "Upgrade",
"variables.button.searchInput.placeholder": "Procure por uma variável",
"variables.button.tooltip": "Insira uma variável",
Expand Down
2 changes: 1 addition & 1 deletion apps/builder/src/components/ConfirmModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const ConfirmModal = ({

<AlertDialogFooter>
<Button ref={cancelRef} onClick={onClose}>
Cancel
{t('cancel')}
</Button>
<Button
colorScheme={confirmButtonColor}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export const TypebotButton = ({
</Alert>
</Stack>
}
confirmButtonLabel="Delete"
confirmButtonLabel={t('delete')}
onConfirm={handleDeleteTypebotClick}
isOpen={isDeleteOpen}
onClose={onDeleteClose}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export const CreateNewTypebotButtons = () => {
createTypebot({
workspaceId: workspace.id,
typebot: {
name: t('typebots.defaultName'),
folderId,
},
})
Expand Down

1 comment on commit 81a70d3

@vercel
Copy link

@vercel vercel bot commented on 81a70d3 Dec 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

builder-v2 – ./apps/builder

builder-v2-typebot-io.vercel.app
builder-v2-git-main-typebot-io.vercel.app
app.typebot.io

Please sign in to comment.