Skip to content

Commit b508d1f

Browse files
authored
Merge pull request #74 from lucasferreiralimax/traducao
Translate i18n\pt-BR\articles\contexto-page.md
2 parents 8782805 + c63cc3c commit b508d1f

File tree

2 files changed

+70
-70
lines changed

2 files changed

+70
-70
lines changed

i18n/en-US/articles/context-page.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,40 +7,40 @@ The page object is a proxy in the framework store part of your context and gives
77

88
This key is *readwrite* and available only in the *client* context.
99

10-
Page keys will be used to generate metatags during [server-side rendering](/server-side-rendering) and must be assigned before [initiate](/full-stack-lifecycle) is resolved.
10+
Page keys will be used to generate metatags during [server-side rendering](/server-side-rendering) and must be assigned before [initiate](/full-stack-lifecycle) while this resolved.
1111

1212
The following keys are available in the object:
1313

14-
- *title*: string
15-
- *image*: string (absolute or relative URL)
16-
- *description*: string
17-
- *canonical*: string (absolute or relative URL)
18-
- *locale*: string
19-
- *robots*: string
20-
- *schema*: object
21-
- *changes*: string
22-
- *priority*: number
23-
- *status*: number
14+
- **title**: `string`
15+
- **image**: `string (absolute or relative URL)`
16+
- **description**: `string`
17+
- **canonical**: `string (absolute or relative URL)`
18+
- **locale**: `string`
19+
- **robots**: `string`
20+
- **schema**: `object`
21+
- **changes**: `string`
22+
- **priority**: `number`
23+
- **status**: `number`
2424

2525
When the title key is assigned on the client-side, the document title will be updated.
2626

27-
Nullstack uses the *changes* and *priority* keys to generate the sitemap.xml.
27+
Nullstack uses the *changes* and *priority* keys to generate the `sitemap.xml`
2828

2929
The sitemap is generated automatically only when using [static site generation](/static-site-generation) and must be manually generated in [server-side rendered](/server-side-rendering) applications
3030

31-
The *changes* key represents the *changefreq* key in the sitemap.xml and if assigned must be one of the following values:
31+
The *changes* key represents the *changefreq* key in the `sitemap.xml` and if assigned must be one of the following values:
3232

33-
- always
34-
- hourly
35-
- daily
36-
- weekly
37-
- monthly
38-
- yearly
39-
- never
33+
- **always**
34+
- **hourly**
35+
- **daily**
36+
- **weekly**
37+
- **monthly**
38+
- **yearly**
39+
- **never**
4040

41-
The *priority* key is a number between 0.0 and 1.0 that represents the *priority* key in the sitemap.xml.
41+
The *priority* key is a number between `0.0` and `1.0` that represents the *priority* key in the `sitemap.xml`
4242

43-
Nullstack does not set a default priority, however, sitemaps assume a 0.5 priority when not explicitly set.
43+
Nullstack does not set a default priority, however, sitemaps assume a `0.5` priority when not explicitly set.
4444

4545
Besides *title* and *locale* all other keys have sensible defaults generated based on the application scope.
4646

@@ -64,8 +64,8 @@ class Page extends Nullstack {
6464
render({page}) {
6565
return (
6666
<div>
67-
<h1> {page.title} </h1>
68-
<p> {page.description} </p>
67+
<h1>{page.title}</h1>
68+
<p>{page.description}</p>
6969
</div>
7070
)
7171
}

i18n/pt-BR/articles/contexto-page.md

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,59 @@
11
---
2-
title: Context Page
3-
description: The page object is a proxy in the framework store part of your context and gives you information about the document head metatags
2+
title: Contexto da página
3+
description: O objeto da página é um proxy armazenado da estrutura de seu contexto e fornece informações sobre as metatags do cabeçalho do documento
44
---
55

6-
The page object is a proxy in the framework store part of your context and gives you information about the document head metatags.
6+
O objeto da página é um proxy armazenado na estrutura de seu contexto e fornece informações sobre as metatags do cabeçalho do documento.
77

8-
This key is *readwrite* and available only in the *client* context.
8+
Esta chave é de *leitura e escrita* e está disponível apenas no contexto *client-side*.
99

10-
Page keys will be used to generate metatags during [server-side rendering](/server-side-rendering) and must be assigned before [initiate](/full-stack-lifecycle) is resolved.
10+
Chaves da página serão usadas para gerar as metatags durante a [renderização no lado do servidor](/pt-br/renderizando-no-servidor) e devem ser atribuídas antes do ciclo de [inicialização](/pt-br/ciclo-de-vida-full-stack) ser resolvido.
1111

12-
The following keys are available in the object:
12+
As seguintes chaves estão disponíveis no objeto:
1313

14-
- *title*: string
15-
- *image*: string (absolute or relative URL)
16-
- *description*: string
17-
- *canonical*: string (absolute or relative URL)
18-
- *locale*: string
19-
- *robots*: string
20-
- *schema*: object
21-
- *changes*: string
22-
- *priority*: number
23-
- *status*: number
14+
- **title**: `string`
15+
- **image**: `string (URL absoluto ou relativo)`
16+
- **description**: `string`
17+
- **canonical**: `string (URL absoluto ou relativo)`
18+
- **locale**: `string`
19+
- **robots**: `string`
20+
- **schema**: `object`
21+
- **changes**: `string`
22+
- **priority**: `number`
23+
- **status**: `number`
2424

25-
When the title key is assigned on the client-side, the document title will be updated.
25+
Quando a chave de título é atribuída no lado client-side, o título do documento será atualizado.
2626

27-
Nullstack uses the *changes* and *priority* keys to generate the sitemap.xml.
27+
Nullstack utiliza as chaves *changes* e *priority* para gerar o `sitemap.xml`
2828

29-
The sitemap is generated automatically only when using [static site generation](/static-site-generation) and must be manually generated in [server-side rendered](/server-side-rendering) applications
29+
O mapa do site é gerado automaticamente apenas ao utilizar a [geração de site estático](/pt-br/geracao-de-sites-estaticos) e deve ser gerado manualmente em aplicativos com a [renderização no lado do servidor](/pt-br/renderizando-no-servidor)
3030

31-
The *changes* key represents the *changefreq* key in the sitemap.xml and if assigned must be one of the following values:
31+
A chave *changes* representa a chave *changefreq* no `sitemap.xml` e se for atribuída será um dos seguintes valores:
3232

33-
- always
34-
- hourly
35-
- daily
36-
- weekly
37-
- monthly
38-
- yearly
39-
- never
33+
- **always**
34+
- **hourly**
35+
- **daily**
36+
- **weekly**
37+
- **monthly**
38+
- **yearly**
39+
- **never**
4040

41-
The *priority* key is a number between 0.0 and 1.0 that represents the *priority* key in the sitemap.xml.
41+
A chave *priority* é um número entre `0.0` e `1.0` que representada no `sitemap.xml`
4242

43-
Nullstack does not set a default priority, however, sitemaps assume a 0.5 priority when not explicitly set.
43+
Nullstack não define uma prioridade padrão, no entanto, os sitemap assumem uma prioridade `0.5` quando não são definidos explicitamente.
4444

45-
Besides *title* and *locale* all other keys have sensible defaults generated based on the application scope.
45+
Além de *title* e *locale*, todas as outras chaves tem padrões sensíveis e gerados com base no escopo do aplicativo.
4646

4747
```jsx
4848
import Nullstack from 'nullstack';
4949

5050
class Page extends Nullstack {
5151

5252
prepare({project, page}) {
53-
page.title = `${project.name} - Page Title`;
54-
page.image = '/image.jpg';
55-
page.description = 'Page meta description';
56-
page.canonical = 'http://absolute.url/canonical-link';
53+
page.title = `${project.name} - Título da página`;
54+
page.image = '/imagem.jpg';
55+
page.description = 'Meta descrição da página';
56+
page.canonical = 'http://absoluto.url/canonical-link';
5757
page.locale = 'pt-BR';
5858
page.robots = 'index, follow';
5959
page.schema = {};
@@ -64,8 +64,8 @@ class Page extends Nullstack {
6464
render({page}) {
6565
return (
6666
<div>
67-
<h1> {page.title} </h1>
68-
<p> {page.description} </p>
67+
<h1>{page.title}</h1>
68+
<p>{page.description}</p>
6969
</div>
7070
)
7171
}
@@ -75,9 +75,9 @@ class Page extends Nullstack {
7575
export default Page;
7676
```
7777

78-
## Custom Events
78+
## Eventos Personalizados
7979

80-
Updating *page.title* will raise a custom event.
80+
Atualizando *page.title* gerando um evento personalizado.
8181

8282
```jsx
8383
import Nullstack from 'nullstack';
@@ -95,15 +95,15 @@ class Analytics extends Nullstack {
9595
export default Analytics;
9696
```
9797

98-
## Error pages
98+
## Páginas de erro
9999

100-
If during the [server-side render](/server-side-rendering) process the *page.status* has any value besides 200, your application will receive another render pass that gives you the chance to adjust the interface according to the status.
100+
Se durante o processo de [renderização no lado do servidor](/pt-br/renderizando-no-servidor) o *page.status* estiver com qualquer valor além de 200, seu aplicativo receberá outra passagem na renderização e lhe possibilitará ajustar a interface de acordo com o status retornado.
101101

102-
The status key will be raised with the HTTP response.
102+
A chave de status será gerada na resposta HTTP.
103103

104-
The page status will be modified to 500 and receive another render pass if the page raise an exception while rendering.
104+
O status da página será modificado para 500 e receberá outra passagem na renderização se a página gerar uma exceção enquanto renderiza.
105105

106-
The status of [server functions](/server-functions) responses will be set to the *page.status*.
106+
O status das respostas de [funções do servidor](/pt-br/funcoes-de-servidor) será definido no *page.status*.
107107

108108
```jsx
109109
import Nullstack from 'nullstack';
@@ -128,8 +128,8 @@ class Application extends Nullstack {
128128
export default Application;
129129
```
130130

131-
> 🔥 Assigning to the status key during the [single-page application](/full-stack-lifecycle) mode will have no effect.
131+
> 🔥 A atribuição à chave de status durante o modo [aplicativo de página única](/pt-br/ciclo-de-vida-full-stack) não terá efeito.
132132
133-
## Next step
133+
## Próxima Etapa
134134

135-
Learn about the [context project](/context-project).
135+
Aprenda sobre o [contexto do projeto](/pt-br/contexto-project).

0 commit comments

Comments
 (0)