Skip to content

Commit d90bf0d

Browse files
author
Lucas-Steffen
committed
docs(i18n): update PT-BR translations for learn sidebar, UI description, and component labels
Refined wording and improved consistency across translated files, including: - sidebarLearn.json - describing-the-ui.md - SocialBanner.tsx - Tag.tsx - TopNav.tsx - MDXComponents.tsx Ensures clearer terminology and alignment with React documentation guidelines.
1 parent 630bc3f commit d90bf0d

File tree

6 files changed

+21
-22
lines changed

6 files changed

+21
-22
lines changed

src/components/Layout/TopNav/TopNav.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ export default function TopNav({
310310
)}
311311
onClick={onOpenSearch}>
312312
<IconSearch className="align-middle me-3 text-gray-30 shrink-0 group-betterhover:hover:text-gray-70" />
313-
Search
313+
Procurar
314314
<span className="hidden ms-auto sm:flex item-center me-1">
315315
<Kbd data-platform="mac"></Kbd>
316316
<Kbd data-platform="win" wide>

src/components/MDX/MDXComponents.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ function LearnMore({
182182
<section className="p-8 mt-16 mb-16 flex flex-row shadow-inner-border dark:shadow-inner-border-dark justify-between items-center bg-card dark:bg-card-dark rounded-2xl">
183183
<div className="flex-col">
184184
<h2 className="text-primary font-display dark:text-primary-dark font-bold text-2xl leading-tight">
185-
Ready to learn this topic?
185+
Pronto para aprender sobre este assunto?
186186
</h2>
187187
{children}
188188
{path ? (

src/components/SocialBanner.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import {useRef, useEffect} from 'react';
77
import cn from 'classnames';
88
import {ExternalLink} from './ExternalLink';
99

10-
const bannerText = 'Join us for React Conf on Oct 7-8.';
10+
const bannerText = 'Participe da conferência React nos dias 7 e 8 de outubro.';
1111
const bannerLink = 'https://conf.react.dev/';
12-
const bannerLinkText = 'Learn more.';
12+
const bannerLinkText = 'Saiba mais.';
1313

1414
export default function SocialBanner() {
1515
const ref = useRef<HTMLDivElement | null>(null);

src/components/Tag.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,23 @@ import type {RouteTag} from './Layout/getRouteMeta';
77

88
const variantMap = {
99
foundation: {
10-
name: 'Foundation',
10+
name: 'Fundamentos',
1111
classes: 'bg-yellow-50 text-white',
1212
},
1313
intermediate: {
14-
name: 'Intermediate',
14+
name: 'Intermediário',
1515
classes: 'bg-purple-40 text-white',
1616
},
1717
advanced: {
18-
name: 'Advanced',
18+
name: 'Avançado',
1919
classes: 'bg-green-40 text-white',
2020
},
2121
experimental: {
2222
name: 'Experimental',
2323
classes: 'bg-ui-orange text-white',
2424
},
2525
deprecated: {
26-
name: 'Deprecated',
26+
name: 'Obsoleto',
2727
classes: 'bg-red-40 text-white',
2828
},
2929
};

src/content/learn/describing-the-ui.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -526,34 +526,33 @@ Leia **[Mantendo Seus Componentes Puros](/learn/keeping-components-pure)** para
526526

527527
</LearnMore>
528528

529-
## Your UI as a tree {/*your-ui-as-a-tree*/}
529+
## Sua interface de usuário como uma árvore {/*your-ui-as-a-tree*/}
530530

531-
React uses trees to model the relationships between components and modules.
531+
O React utiliza árvores para modelar as relações entre componentes e módulos.
532532

533-
A React render tree is a representation of the parent and child relationship between components.
533+
Uma árvore de renderização React é uma representação da relação pai-filho entre componentes.
534534

535-
<Diagram name="generic_render_tree" height={250} width={500} alt="A tree graph with five nodes, with each node representing a component. The root node is located at the top the tree graph and is labelled 'Root Component'. It has two arrows extending down to two nodes labelled 'Component A' and 'Component C'. Each of the arrows is labelled with 'renders'. 'Component A' has a single 'renders' arrow to a node labelled 'Component B'. 'Component C' has a single 'renders' arrow to a node labelled 'Component D'.">
535+
<Diagram name="generic_render_tree" height={250} width={500} alt="A tree graph with five nodes, with each node representing a component. The root node is located at the top the tree graph and is labelled 'Componente raiz'. It has two arrows extending down to two nodes labelled 'Componente A' and 'Componente C'. Each of the arrows is labelled with 'renders'. 'Componente A' has a single 'renders' arrow to a node labelled 'Componente B'. 'Componente C' has a single 'renders' arrow to a node labelled 'Componente D'.">
536536

537-
An example React render tree.
537+
Um exemplo de árvore de renderização React.
538538

539539
</Diagram>
540540

541-
Components near the top of the tree, near the root component, are considered top-level components. Components with no child components are leaf components. This categorization of components is useful for understanding data flow and rendering performance.
541+
Os componentes próximos ao topo da árvore, perto do componente raiz, são considerados componentes de nível superior. Componentes sem componentes filhos são componentes folha. Essa categorização de componentes é útil para entender o fluxo de dados e o desempenho de renderização.
542542

543-
Modelling the relationship between JavaScript modules is another useful way to understand your app. We refer to it as a module dependency tree.
543+
Modelar o relacionamento entre módulos JavaScript é outra maneira útil de entender seu aplicativo. Chamamos isso de árvore de dependências de módulos.
544544

545545
<Diagram name="generic_dependency_tree" height={250} width={500} alt="A tree graph with five nodes. Each node represents a JavaScript module. The top-most node is labelled 'RootModule.js'. It has three arrows extending to the nodes: 'ModuleA.js', 'ModuleB.js', and 'ModuleC.js'. Each arrow is labelled as 'imports'. 'ModuleC.js' node has a single 'imports' arrow that points to a node labelled 'ModuleD.js'.">
546546

547-
An example module dependency tree.
547+
Um exemplo de árvore de dependências de módulos.
548548

549549
</Diagram>
550550

551-
A dependency tree is often used by build tools to bundle all the relevant JavaScript code for the client to download and render. A large bundle size regresses user experience for React apps. Understanding the module dependency tree is helpful to debug such issues.
551+
Uma árvore de dependências é frequentemente usada por ferramentas de compilação para agrupar todo o código JavaScript relevante para o cliente baixar e renderizar. Um pacote muito grande prejudica a experiência do usuário em aplicativos React. Compreender a árvore de dependências do módulo é útil para depurar esses problemas.
552552

553553
<LearnMore path="/learn/understanding-your-ui-as-a-tree">
554554

555-
Read **[Your UI as a Tree](/learn/understanding-your-ui-as-a-tree)** to learn how to create a render and module dependency trees for a React app and how they're useful mental models for improving user experience and performance.
556-
555+
Leia **[Sua interface de usuário como uma árvore](/learn/understanding-your-ui-as-a-tree)** Aprenda como criar árvores de dependências de renderização e de módulos para um aplicativo React e como elas são modelos mentais úteis para melhorar a experiência do usuário e o desempenho.
557556
</LearnMore>
558557

559558

src/sidebarLearn.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"canary": true,
6363
"routes": [
6464
{
65-
"title": "Introduction",
65+
"title": "Introdução",
6666
"path": "/learn/react-compiler/introduction"
6767
},
6868
{
@@ -85,8 +85,8 @@
8585
},
8686
{
8787
"title": "Descrevendo a IU",
88-
"tags": [],
8988
"path": "/learn/describing-the-ui",
89+
"tags": ["foundation"],
9090
"routes": [
9191
{
9292
"title": "Seu Primeiro Componente",
@@ -121,7 +121,7 @@
121121
"path": "/learn/keeping-components-pure"
122122
},
123123
{
124-
"title": "Your UI as a Tree",
124+
"title": "Sua interface de usuário como uma árvore",
125125
"path": "/learn/understanding-your-ui-as-a-tree"
126126
}
127127
]

0 commit comments

Comments
 (0)