Skip to content

Commit

Permalink
fix: translation on inputs and changed typebot references
Browse files Browse the repository at this point in the history
  • Loading branch information
kweripx committed Feb 2, 2024
1 parent d24f8a3 commit ca4bd4f
Show file tree
Hide file tree
Showing 36 changed files with 187 additions and 261 deletions.
8 changes: 4 additions & 4 deletions apps/builder/public/locales/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"account.apiTokens.createModal.securityWarning": "Por razões de segurança, não o podemos mostrar novamente.",
"account.apiTokens.deleteButton.label": "Excluir",
"account.apiTokens.deleteConfirmationMessage": "O token <strong>tokenName</strong> será revogado permanentemente. Tem a certeza de que deseja continuar?",
"account.apiTokens.description": "Estes tokens permitem que outras aplicações controlem toda a sua conta e typebots. Tenha cuidado!",
"account.apiTokens.description": "Estes tokens permitem que outras aplicações controlem toda a sua conta e bots. Tenha cuidado!",
"account.apiTokens.heading": "Tokens de API",
"account.apiTokens.table.createdHeader": "Criado",
"account.apiTokens.table.nameHeader": "Nome",
Expand Down Expand Up @@ -106,7 +106,7 @@
"billing.updateSuccessToast.description": "A sua subscrição {plan} foi atualizada com sucesso \uD83C\uDF89",
"billing.upgradeAlert.buttonDefaultLabel": "Mais informações",
"billing.upgradeLimitLabel": "Precisa de atualizar a sua subscrição para {type}",
"billing.usage.chats.alert.soonReach": "Os seus typebots são populares! Vai alcançar em breve o limite de chats do seu plano. \uD83D\uDE80",
"billing.usage.chats.alert.soonReach": "Os seus bots são populares! Vai alcançar em breve o limite de chats do seu plano. \uD83D\uDE80",
"billing.usage.chats.alert.updatePlan": "Certifique-se de atualizar o seu plano para aumentar esse limite e continuar a conversar com os seus utilizadores.",
"billing.usage.chats.heading": "Chats",
"billing.usage.heading": "Uso",
Expand All @@ -120,7 +120,7 @@
"confirmModal.defaultTitle": "Tem a certeza?",
"dashboard.header.settingsButton.label": "Configurações & Membros",
"dashboard.redirectionMessage": "Está a ser redirecionado...",
"dashboard.title": "Os meus typebots",
"dashboard.title": "Os meus bots",
"delete": "Apagar",
"downgrade": "Downgrade",
"editor.blockCard.logicBlock.tooltip.code.label": "Executar código Javascript",
Expand Down Expand Up @@ -241,7 +241,7 @@
"workspace.membersList.inviteInput.placeholder": "[email protected]",
"workspace.membersList.title": "Membros",
"workspace.membersList.unlockBanner.label": "Atualize o seu plano para trabalhar com mais membros da equipa e desbloquear funcionalidades incríveis \uD83D\uDE80",
"workspace.settings.deleteButton.confirmMessage": "Tem a certeza de que deseja eliminar o espaço de trabalho {workspaceName}? Todas as suas pastas, typebots e resultados serão excluídos permanentemente.",
"workspace.settings.deleteButton.confirmMessage": "Tem a certeza de que deseja eliminar o espaço de trabalho {workspaceName}? Todas as suas pastas, bots e resultados serão excluídos permanentemente.",
"workspace.settings.deleteButton.label": "Eliminar espaço de trabalho",
"workspace.settings.icon.title": "Ícone",
"workspace.settings.modal.menu.billingAndUsage.label": "Faturação e uso",
Expand Down
2 changes: 1 addition & 1 deletion apps/builder/public/templates/lead-magnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@
"isCustomBody": true,
"recipients": ["{{Email}}"],
"subject": "Here is your community bundle ✨",
"body": "Hey {{Name}},\n\nHere is a link to download the community bundle:\n\nhttps://typebot.io\n\nI hope it will help you create the right community for your project 🚀\n\nBest,\nTypebot team."
"body": "Olá, {{Name}},\n\nAqui está um link para baixar o pacote da comunidade:\n\nhttps://toolzz.ai\n\nEspero que isso ajude você a criar a comunidade certa para o seu projeto 🚀\n nMelhor,\nEquipe Toolzz Bots."
}
}
]
Expand Down
8 changes: 5 additions & 3 deletions apps/builder/public/templates/onboarding.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"type": "p",
"children": [
{
"text": "I'm super pumped that you've decided to try out Typebot 😍"
"text": "Estou super entusiasmado por você ter decidido experimentar o Toolz Bots 😍"
}
]
}
Expand Down Expand Up @@ -98,7 +98,9 @@
{
"type": "p",
"children": [
{ "text": "Let's get you set up for your Typebot journey." }
{
"text": "Vamos preparar você para sua jornada Toolzz Bots."
}
]
}
]
Expand Down Expand Up @@ -155,7 +157,7 @@
"type": "p",
"children": [
{
"text": "What type of bots are you planning to build with Typebot?"
"text": "Que tipo de bots você planeja construir com o Toolzz Bots?"
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion apps/builder/public/templates/openai-conditions.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
{
"id": "s7s7uaurqlmsn3r89c10mk98",
"role": "system",
"content": "You are helpful assistant doing customer support for a software called Typebot.\n\nIf the user is asking a question about his account, please say \"ACCOUNT\".\n\nIf the user wants to talk to a human, please say \"HUMAN\".\n\nOtherwise, say \"OK\""
"content": "You are helpful assistant doing customer support for a software called Toolzz Bots.\n\nIf the user is asking a question about his account, please say \"ACCOUNT\".\n\nIf the user wants to talk to a human, please say \"HUMAN\".\n\nOtherwise, say \"OK\""
},
{
"id": "zrgypmt1wlogakfl06gfxpgk",
Expand Down
2 changes: 1 addition & 1 deletion apps/builder/public/templates/quiz.json
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@
"blocks": [
{
"id": "cl1r15f87005g2e6dp3srll8r",
"type": "Typebot link",
"type": "Toolz Bots link",
"options": {
"typebotId": "current",
"groupId": "cl1r09bc6000h2e6dqml18p4p",
Expand Down
2 changes: 1 addition & 1 deletion apps/builder/src/components/EmojiOrImageIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const EmojiOrImageIcon = ({
src={icon}
boxSize={boxSize}
objectFit={isSvgSrc(icon) ? undefined : 'cover'}
alt="typebot icon"
alt="toolz icon"
rounded="10%"
/>
) : (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const GiphyPicker = ({ onSubmit }: GiphySearchFormProps) => {
<Flex align="center">
<TextInput
autoFocus
placeholder="Search..."
placeholder="Buscar..."
onChange={setInputValue}
withVariableButton={false}
/>
Expand Down
6 changes: 3 additions & 3 deletions apps/builder/src/components/ImageUploadContent/IconPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export const IconPicker = ({ onIconSelected }: Props) => {
<Stack>
<HStack>
<TextInput
placeholder="Search..."
placeholder="Buscar..."
onChange={searchIcon}
withVariableButton={false}
debounceTimeout={300}
Expand All @@ -117,7 +117,7 @@ export const IconPicker = ({ onIconSelected }: Props) => {
{recentIconNames.length > 0 && (
<Stack>
<Text fontSize="xs" color="gray.400" fontWeight="semibold" pl="2">
RECENT
Recentes
</Text>
<SimpleGrid
spacing={0}
Expand Down Expand Up @@ -145,7 +145,7 @@ export const IconPicker = ({ onIconSelected }: Props) => {
<Stack>
{recentIconNames.length > 0 && (
<Text fontSize="xs" color="gray.400" fontWeight="semibold" pl="2">
ICONS
ICONES
</Text>
)}
<SimpleGrid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ const UploadFileContent = ({
onFileUploaded={onNewUrl}
colorScheme="blue"
>
Choose an image
Selecione uma imagem
</UploadButton>
</Flex>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const UnsplashPicker = ({ imageSize, onImageSelect }: Props) => {
} catch (err) {
if (err && typeof err === 'object' && 'message' in err)
setError(err.message as string)
setError('Something went wrong')
setError('Algo deu errado')
}
setIsFetching(false)
}, [])
Expand Down Expand Up @@ -108,7 +108,7 @@ export const UnsplashPicker = ({ imageSize, onImageSelect }: Props) => {
} catch (err) {
if (err && typeof err === 'object' && 'message' in err)
setError(err.message as string)
setError('Something went wrong')
setError('Algo deu errado')
}
setIsFetching(false)
}
Expand All @@ -135,7 +135,7 @@ export const UnsplashPicker = ({ imageSize, onImageSelect }: Props) => {
<HStack align="center">
<TextInput
autoFocus
placeholder="Search..."
placeholder="Buscar..."
onChange={(query) => {
setSearchQuery(query)
fetchNewImages(query, 0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const UploadButton = ({
})

if (!upload.ok) {
showToast({ description: 'Error while trying to upload the file.' })
showToast({ description: 'Erro ao tentar fazer upload do arquivo.' })
return
}

Expand All @@ -51,7 +51,10 @@ export const UploadButton = ({
setIsUploading(true)
const file = e.target.files[0] as File | undefined
if (!file)
return showToast({ description: 'Could not read file.', status: 'error' })
return showToast({
description: 'Não foi possível ler o arquivo.',
status: 'error',
})
setFile(await compressFile(file))
mutate({
filePathProps,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,9 @@ export const ProPlanPricingCard = ({
fontSize="sm"
color={useColorModeValue('gray.500', 'gray.400')}
>
Extra chats:{' '}
Chats extras:{' '}
<Button size="xs" variant="outline" onClick={onOpen}>
See tiers
Ver planos
</Button>
</Text>
</Stack>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const UsageProgressBars = ({ workspace }: Props) => {
</Tooltip>
)}
<Text fontSize="sm" fontStyle="italic" color="gray.500">
(Resets on {data?.resetsAt.toLocaleDateString()})
(Redefinição em: {data?.resetsAt.toLocaleDateString()})
</Text>
</HStack>

Expand Down
19 changes: 10 additions & 9 deletions apps/builder/src/features/publish/components/PublishButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,18 +153,19 @@ export const PublishButton = ({
message={
<Stack spacing="3">
<Text>
You are about to a deploy a version of your bot with an updated
engine. (Typebot V6).
Você esta prestas a publicar uma versão do seu bot com uma
versão atualizada. (Toolzz V6).
</Text>
<Text fontWeight="bold">
Make sure to check out all the{' '}
Preste atenção para marcar todos{' '}
<TextLink href="" isExternal>
associated breaking changes
associados com toda grande atualização.
</TextLink>
</Text>
<Text>
{' '}
Then test, the bot thoroughly in preview mode before publishing.
Em seguida, teste o bot completamente no modo de visualização
antes de publicar.
</Text>
</Stack>
}
Expand All @@ -175,12 +176,12 @@ export const PublishButton = ({
placement="bottom-end"
label={
<Stack>
<Text>There are non published changes.</Text>
<Text>Existem alterações não publicadas.</Text>
<Text fontStyle="italic">
Published version from{' '}
Versão publica a{' '}
{publishedTypebot &&
parseTimeSince(publishedTypebot.updatedAt.toString())}{' '}
ago
atras
</Text>
</Stack>
}
Expand Down Expand Up @@ -222,7 +223,7 @@ export const PublishButton = ({
<MenuList>
{!isPublished && (
<MenuItem onClick={restorePublishedTypebot}>
Restore published version
Restaurar versão publicada
</MenuItem>
)}
{!typebot?.isClosed ? (
Expand Down
6 changes: 3 additions & 3 deletions apps/builder/src/features/publish/components/SharePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const SharePage = () => {

if (!isCorrectlyFormatted) {
showToast({
description: 'Can only contain lowercase letters, numbers and dashes.',
description: 'Só pode conter letras minúsculas, números e travessões.',
})
return false
}
Expand All @@ -72,7 +72,7 @@ export const SharePage = () => {
const isLongerThanAllowed = publicId.length >= 4
if (!isLongerThanAllowed && isCloudProdInstance()) {
showToast({
description: 'Should be longer than 4 characters',
description: 'Deve ter mais de 4 caracteres',
})
return false
}
Expand All @@ -81,7 +81,7 @@ export const SharePage = () => {

const { data } = await isPublicDomainAvailableQuery(publicId)
if (!data?.isAvailable) {
showToast({ description: 'ID is already taken' })
showToast({ description: 'Esse ID ja existe' })
return false
}

Expand Down
12 changes: 4 additions & 8 deletions apps/landing-page/components/Homepage/EndCta.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Heading, Button, Text, Flex, VStack } from '@chakra-ui/react'
import { Heading, Button, Flex, VStack } from '@chakra-ui/react'
import Link from 'next/link'
import React from 'react'
import { BackgroundPolygons } from './Hero/BackgroundPolygons'
Expand Down Expand Up @@ -27,25 +27,21 @@ export const EndCta = () => {
letterSpacing="tight"
data-aos="fade-up"
>
Take your forms to the next level
Leve seus formulários para o próximo nível
</Heading>
<Flex>
<Button
as={Link}
href="https://app.typebot.io/register"
href="https://chatbuilder.toolzz.ai/register"
size="lg"
colorScheme="orange"
height="4rem"
data-aos="fade-up"
data-aos-delay="300"
>
Create a typebot
Crie um bot
</Button>
</Flex>

<Text color="gray.400" data-aos="fade-up" data-aos-delay="400">
No trial. Generous, unlimited <strong>free</strong> plan.
</Text>
</VStack>
</VStack>
)
Expand Down
10 changes: 5 additions & 5 deletions apps/landing-page/components/Homepage/Hero/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ export const Hero = () => {
data-aos="fade-up"
data-aos-delay="100"
>
Typebot gives you powerful blocks to create unique chat
experiences. Embed them anywhere on your web/mobile apps and start
collecting results like magic.
Toolz Bots oferece blocos poderosos para criar um bate-papo
exclusivo experiências. Incorpore-os em qualquer lugar em seus
aplicativos web/móveis e comece coletando resultados como mágica.
</Text>
<Stack
direction={['column-reverse', 'row']}
Expand All @@ -53,7 +53,7 @@ export const Hero = () => {
>
<Button
as={Link}
href="https://app.typebot.io/register"
href="https://chatbuilder.toolzz.ai/register"
colorScheme="orange"
size="lg"
height="4rem"
Expand Down Expand Up @@ -107,7 +107,7 @@ export const Hero = () => {
<Flex justify="center" bgGradient="linear(to-b, gray.900, gray.800)">
<VStack spacing="12" pb="32" maxW="7xl" px={4}>
<Heading fontSize="25px" fontWeight="semibold" data-aos="fade">
Loved by teams and creators from all around the world
Amado por equipes e criadores de todo o mundo
</Heading>
<SimpleGrid
columns={{ base: 2, md: 4 }}
Expand Down
6 changes: 3 additions & 3 deletions apps/landing-page/components/Homepage/Integrations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,16 +104,16 @@ export const Integrations = () => (

<Stack w="full" maxWidth="1200px" px="4">
<Heading fontSize={['3xl', '4xl']} data-aos="fade-up">
Integrate with any platform
Integre com qualquer plataforma
</Heading>
<Text
color="gray.400"
maxW="700px"
fontSize={['lg', 'xl']}
data-aos="fade-up"
>
Typebot offers several native integrations blocks as well as
instructions on how to embed typebot on particular platforms
O Toolzz Bots oferece vários blocos de integrações nativas, bem como
instruções sobre como incorporar o typebot em plataformas específicas
</Text>
</Stack>
</Stack>
Expand Down
Loading

0 comments on commit ca4bd4f

Please sign in to comment.