Skip to content

Commit

Permalink
translate labels
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasbuges authored Dec 31, 2023
1 parent adc05e4 commit a8399b4
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const GeneralSettingsForm = ({
return (
<Stack spacing={6}>
<SwitchWithLabel
label="Prefill input"
label="Prefill inputs"
initialValue={
generalSettings?.isInputPrefillEnabled ??
defaultSettings.general.isInputPrefillEnabled
Expand All @@ -73,17 +73,17 @@ export const GeneralSettingsForm = ({
moreInfoContent="Inputs are automatically pre-filled whenever their associated variable has a value"
/>
<SwitchWithLabel
label="Hide query params on bot start"
label="Ocultar parâmetros de consulta no início do bot"
initialValue={
generalSettings?.isHideQueryParamsEnabled ??
defaultSettings.general.isHideQueryParamsEnabled
}
onCheckChange={handleHideQueryParamsChange}
moreInfoContent="If your URL contains query params, they will be automatically hidden when the bot starts."
moreInfoContent="Se o seu URL contiver parâmetros de consulta, eles serão ocultados automaticamente quando o bot for iniciado."
/>
<SwitchWithRelatedSettings
label={'Remember user'}
moreInfoContent="If enabled, user previous variables will be prefilled and his new answers will override the previous ones."
label={'Lembrar usuário'}
moreInfoContent="Se ativado, as variáveis anteriores do usuário serão pré-preenchidas e suas novas respostas substituirão as anteriores."
initialValue={
generalSettings?.rememberUser?.isEnabled ??
(isDefined(generalSettings?.isNewResultOnRefreshEnabled)
Expand Down
2 changes: 1 addition & 1 deletion apps/builder/src/features/settings/settings.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ test.describe.parallel('Settings page', () => {
})
await page.goto(`/typebots/${typebotId}/settings`)

await page.click('text="Remember user"')
await page.click('text="Lembrar usuário"')

await expect(page.getByPlaceholder('Type your answer...')).toHaveValue(
'Baptiste'
Expand Down
4 changes: 2 additions & 2 deletions apps/builder/src/features/theme/components/ThemeSideMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export const ThemeSideMenu = () => {
<AccordionButton py={6}>
<HStack flex="1" pl={2}>
<TableIcon />
<Heading fontSize="lg">Templates</Heading>
<Heading fontSize="lg">Temas</Heading>
</HStack>
<AccordionIcon />
</AccordionButton>
Expand All @@ -97,7 +97,7 @@ export const ThemeSideMenu = () => {
<AccordionButton py={6}>
<HStack flex="1" pl={2}>
<DropletIcon />
<Heading fontSize="lg">Global</Heading>
<Heading fontSize="lg">Visual</Heading>
</HStack>
<AccordionIcon />
</AccordionButton>
Expand Down
4 changes: 2 additions & 2 deletions apps/builder/src/features/theme/components/ThemeTemplates.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ export const ThemeTemplates = ({
colorScheme={selectedTab === 'my-templates' ? 'blue' : 'gray'}
onClick={() => setSelectedTab('my-templates')}
>
Meus templates
Meus temas
</Button>
<Button
flex="1"
variant="outline"
colorScheme={selectedTab === 'gallery' ? 'blue' : 'gray'}
onClick={() => setSelectedTab('gallery')}
>
Marketplace
Templates Toolzz
</Button>
</HStack>
<ThemeTemplatesBody
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,22 +71,22 @@ export const ChatThemeSettings = ({
onAvatarChange={updateGuestAvatar}
/>
<Stack borderWidth={1} rounded="md" p="4" spacing={4}>
<Heading fontSize="lg">Bot bubbles</Heading>
<Heading fontSize="lg">Bot Messages</Heading>
<HostBubbles
hostBubbles={chatTheme?.hostBubbles}
onHostBubblesChange={updateHostBubbles}
/>
</Stack>

<Stack borderWidth={1} rounded="md" p="4" spacing={4}>
<Heading fontSize="lg">User bubbles</Heading>
<Heading fontSize="lg">User Messages</Heading>
<GuestBubbles
guestBubbles={chatTheme?.guestBubbles}
onGuestBubblesChange={updateGuestBubbles}
/>
</Stack>
<Stack borderWidth={1} rounded="md" p="4" spacing={4}>
<Heading fontSize="lg">Buttons</Heading>
<Heading fontSize="lg">Botões</Heading>
<ButtonsTheme
buttons={chatTheme?.buttons}
onButtonsChange={updateButtons}
Expand All @@ -97,7 +97,7 @@ export const ChatThemeSettings = ({
<InputsTheme inputs={chatTheme?.inputs} onInputsChange={updateInputs} />
</Stack>
<Stack borderWidth={1} rounded="md" p="4" spacing={4}>
<Heading fontSize="lg">Corners roundness</Heading>
<Heading fontSize="lg">Bordas</Heading>
<RadioButtons
options={[
{
Expand Down

1 comment on commit a8399b4

@vercel
Copy link

@vercel vercel bot commented on a8399b4 Dec 31, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.