Skip to content

Commit

Permalink
Translate LayoutHeader Component (#89)
Browse files Browse the repository at this point in the history
* Translate LayoutHeader Component

* docs: Translate comment
  • Loading branch information
Alexandre Lara authored and glaucia86 committed Feb 12, 2019
1 parent 7a3a106 commit 87d6cdd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions src/components/LayoutHeader/DocSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ class DocSearch extends Component<{}, State> {
enabled: true,
};
componentDidMount() {
// Initialize Algolia search.
// TODO Is this expensive? Should it be deferred until a user is about to search?
// Inicializar a busca do Algolia.
// TODO Isto 茅 custoso? Deveria ser adiado at茅 que um usu谩rio esteja prestes a pesquisar?
// eslint-disable-next-line no-undef
if (window.docsearch) {
window.docsearch({
Expand All @@ -27,7 +27,7 @@ class DocSearch extends Component<{}, State> {
inputSelector: '#algolia-doc-search',
});
} else {
console.warn('Search has failed to load and now is being disabled');
console.warn('A busca falhou ao ser carregada e est谩 sendo desativada');
this.setState({enabled: false});
}
}
Expand Down Expand Up @@ -104,8 +104,8 @@ class DocSearch extends Component<{}, State> {
}}
id="algolia-doc-search"
type="search"
placeholder="Search docs"
aria-label="Search docs"
placeholder="Buscar docs"
aria-label="Buscar docs"
/>
</form>
) : null;
Expand Down
4 changes: 2 additions & 2 deletions src/components/LayoutHeader/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const Header = ({location}: {location: Location}) => (
marginTop: 1,
},
[media.lessThan('small')]: {
// Visually hidden
// Visualmente escondido
position: 'absolute',
overflow: 'hidden',
clip: 'rect(0 0 0 0)',
Expand Down Expand Up @@ -125,7 +125,7 @@ const Header = ({location}: {location: Location}) => (
/>
<HeaderLink
isActive={location.pathname.includes('/community/')}
title="Community"
title="Comunidade"
to="/community/support.html"
/>
<HeaderLink
Expand Down
4 changes: 2 additions & 2 deletions src/components/LayoutHeader/SearchSvg.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import React from 'react';

const SearchSvg = () => (
<svg
alt="Search"
alt="Busca"
height="16"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 16 16">
<title>Search</title>
<title>Busca</title>
<path
d={`
M6.02945,10.20327a4.17382,4.17382,0,1,1,4.17382-4.17382A4.15609,4.15609,
Expand Down

0 comments on commit 87d6cdd

Please sign in to comment.