Skip to content

Commit 87d6cdd

Browse files
Alexandre Laraglaucia86
Alexandre Lara
authored andcommitted
Translate LayoutHeader Component (reactjs#89)
* Translate LayoutHeader Component * docs: Translate comment
1 parent 7a3a106 commit 87d6cdd

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/components/LayoutHeader/DocSearch.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ class DocSearch extends Component<{}, State> {
1717
enabled: true,
1818
};
1919
componentDidMount() {
20-
// Initialize Algolia search.
21-
// TODO Is this expensive? Should it be deferred until a user is about to search?
20+
// Inicializar a busca do Algolia.
21+
// TODO Isto é custoso? Deveria ser adiado até que um usuário esteja prestes a pesquisar?
2222
// eslint-disable-next-line no-undef
2323
if (window.docsearch) {
2424
window.docsearch({
@@ -27,7 +27,7 @@ class DocSearch extends Component<{}, State> {
2727
inputSelector: '#algolia-doc-search',
2828
});
2929
} else {
30-
console.warn('Search has failed to load and now is being disabled');
30+
console.warn('A busca falhou ao ser carregada e está sendo desativada');
3131
this.setState({enabled: false});
3232
}
3333
}
@@ -104,8 +104,8 @@ class DocSearch extends Component<{}, State> {
104104
}}
105105
id="algolia-doc-search"
106106
type="search"
107-
placeholder="Search docs"
108-
aria-label="Search docs"
107+
placeholder="Buscar docs"
108+
aria-label="Buscar docs"
109109
/>
110110
</form>
111111
) : null;

src/components/LayoutHeader/Header.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const Header = ({location}: {location: Location}) => (
7575
marginTop: 1,
7676
},
7777
[media.lessThan('small')]: {
78-
// Visually hidden
78+
// Visualmente escondido
7979
position: 'absolute',
8080
overflow: 'hidden',
8181
clip: 'rect(0 0 0 0)',
@@ -125,7 +125,7 @@ const Header = ({location}: {location: Location}) => (
125125
/>
126126
<HeaderLink
127127
isActive={location.pathname.includes('/community/')}
128-
title="Community"
128+
title="Comunidade"
129129
to="/community/support.html"
130130
/>
131131
<HeaderLink

src/components/LayoutHeader/SearchSvg.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import React from 'react';
88

99
const SearchSvg = () => (
1010
<svg
11-
alt="Search"
11+
alt="Busca"
1212
height="16"
1313
xmlns="http://www.w3.org/2000/svg"
1414
viewBox="0 0 16 16">
15-
<title>Search</title>
15+
<title>Busca</title>
1616
<path
1717
d={`
1818
M6.02945,10.20327a4.17382,4.17382,0,1,1,4.17382-4.17382A4.15609,4.15609,

0 commit comments

Comments
 (0)