Skip to content

Commit e0f492e

Browse files
feat: Portuguese language (#61)
1 parent 794629c commit e0f492e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+3780
-106
lines changed

.vitepress/config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export default {
1515
{text: '中文简体', link: '/zh/'},
1616
{text: '日本語(翻訳中)', link: '/ja/'},
1717
{text: 'Українська', link: '/uk/'},
18+
{text: 'Português', link: '/pt/'}
1819
]
1920
},
2021
locales: locales.themeConfig

.vitepress/locales/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,21 @@ import en from './en'
22
import zh from './zh'
33
import ja from './ja'
44
import uk from './uk'
5+
import pt from './pt'
56

67
export default {
78
vitepressConfig: {
89
'/': en.vitepressConfig,
910
'/zh/': zh.vitepressConfig,
1011
'/ja/': ja.vitepressConfig,
1112
'/uk/': uk.vitepressConfig,
13+
'/pt/': pt.vitepressConfig,
1214
},
1315
themeConfig: {
1416
'/': en.themeConfig,
1517
'/zh/': zh.themeConfig,
1618
'/ja/': ja.themeConfig,
1719
'/uk/': uk.themeConfig,
20+
'/pt/': pt.themeConfig,
1821
}
1922
}

.vitepress/locales/pt.js

Lines changed: 176 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,176 @@
1+
export default {
2+
vitepressConfig: {
3+
title: 'Guia de Migração da Vue 3',
4+
description: 'Guia sobre a migração da Vue 2 à Vue 3',
5+
lang: 'pt-PT'
6+
},
7+
themeConfig: {
8+
nav: [
9+
{ text: 'Documentação da Vue 3', link: 'https://pt.vuejs.org' },
10+
],
11+
12+
sidebar: [
13+
{
14+
text: 'Guide',
15+
items: [
16+
{ text: 'Visão Geral', link: '/pt/' },
17+
{ text: 'Novas Recomendações', link: '/pt/recommendations' },
18+
{ text: 'Construção de Migração', link: '/pt/migration-build' },
19+
{
20+
text: 'Mudanças de Rutura',
21+
link: '/pt/breaking-changes/'
22+
}
23+
]
24+
},
25+
{
26+
text: 'API Global',
27+
items: [
28+
{
29+
text: 'Instância e Aplicação da API Global',
30+
link: '/pt/breaking-changes/global-api'
31+
},
32+
{
33+
text: 'Agitação de Árvore da API Global',
34+
link: '/pt/breaking-changes/global-api-treeshaking'
35+
}
36+
]
37+
},
38+
{
39+
text: 'Diretivas do Modelo de Marcação',
40+
items: [
41+
{ text: 'v-model', link: '/pt/breaking-changes/v-model' },
42+
{
43+
text: 'Mudança de Uso de `key`',
44+
link: '/pt/breaking-changes/key-attribute'
45+
},
46+
{
47+
text: 'Precedência de `v-if` vs. `v-for`',
48+
link: '/pt/breaking-changes/v-if-v-for'
49+
},
50+
{
51+
text: 'Comportamento de Combinação de `v-bind`',
52+
link: '/pt/breaking-changes/v-bind'
53+
},
54+
{
55+
text: 'Modificador `v-on.native` removido',
56+
link: '/pt/breaking-changes/v-on-native-modifier-removed'
57+
}
58+
]
59+
},
60+
{
61+
text: 'Componentes',
62+
items: [
63+
{
64+
text: 'Componentes Funcionais',
65+
link: '/pt/breaking-changes/functional-components'
66+
},
67+
{
68+
text: 'Componentes Assíncronos',
69+
link: '/pt/breaking-changes/async-components'
70+
},
71+
{
72+
text: 'Opção `emits`',
73+
link: '/pt/breaking-changes/emits-option'
74+
}
75+
]
76+
},
77+
{
78+
text: 'Função de Interpretação',
79+
items: [
80+
{
81+
text: 'API da Função de Interpretação',
82+
link: '/pt/breaking-changes/render-function-api'
83+
},
84+
{
85+
text: 'Unificação de Ranhuras',
86+
link: '/pt/breaking-changes/slots-unification'
87+
},
88+
{
89+
text: '`$listeners` combinados no `$attrs`',
90+
link: '/pt/breaking-changes/listeners-removed'
91+
},
92+
{
93+
text: '`$attrs` inclui `class` & `style`',
94+
link: '/pt/breaking-changes/attrs-includes-class-style'
95+
}
96+
]
97+
},
98+
{
99+
text: 'Elementos Personalizados',
100+
items: [
101+
{
102+
text: 'Mudanças Interoperacionais dos Elementos Personalizados',
103+
link: '/pt/breaking-changes/custom-elements-interop'
104+
}
105+
]
106+
},
107+
{
108+
text: 'APIs Removidas',
109+
items: [
110+
{
111+
text: 'Modificadores de `keyCode` de `v-on`',
112+
link: '/pt/breaking-changes/keycode-modifiers'
113+
},
114+
{ text: 'API de Eventos', link: '/pt/breaking-changes/events-api' },
115+
{ text: 'Filtros', link: '/pt/breaking-changes/filters' },
116+
{
117+
text: '`inline-template`',
118+
link: '/pt/breaking-changes/inline-template-attribute'
119+
},
120+
{
121+
text: '`$children`', link: '/pt/breaking-changes/children'
122+
},
123+
{
124+
text: 'Opção `propsData`',
125+
link: '/pt/breaking-changes/props-data'
126+
}
127+
]
128+
},
129+
{
130+
text: 'Outras Pequenas Mudanças',
131+
items: [
132+
{
133+
text: 'Comportamento de Coerção de Atributo',
134+
link: '/pt/breaking-changes/attribute-coercion'
135+
},
136+
{
137+
text: 'Diretivas Personalizadas',
138+
link: '/pt/breaking-changes/custom-directives'
139+
},
140+
{
141+
text: 'Opção `data`',
142+
link: '/pt/breaking-changes/data-option'
143+
},
144+
{
145+
text: 'Mudanças da API de Montagem',
146+
link: '/pt/breaking-changes/mount-changes'
147+
},
148+
{
149+
text: 'Acesso de `this` da Função Padrão das Propriedades',
150+
link: '/pt/breaking-changes/props-default-this'
151+
},
152+
{
153+
text: 'Mudança da Classe de Transição',
154+
link: '/pt/breaking-changes/transition'
155+
},
156+
{
157+
text: '`Transition` como Raiz',
158+
link: '/pt/breaking-changes/transition-as-root'
159+
},
160+
{
161+
text: 'Elemento de Raiz do Grupo de Transição',
162+
link: '/pt/breaking-changes/transition-group'
163+
},
164+
{
165+
text: 'Eventos do Ciclo de Vida do Nó Virtual',
166+
link: '/pt/breaking-changes/vnode-lifecycle-events'
167+
},
168+
{
169+
text: 'Observação dos Vetores',
170+
link: '/pt/breaking-changes/watch'
171+
}
172+
]
173+
}
174+
]
175+
}
176+
}

.vitepress/theme/MigrationBadges.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ const localeBadges = {
2525
breaking: 'несумісно',
2626
removed: 'видалено',
2727
updated: 'змінено'
28+
},
29+
'pt-PT': {
30+
new: 'novo',
31+
breaking: 'rutura',
32+
removed: 'removido',
33+
updated: 'atualizado'
2834
}
2935
}
3036

0 commit comments

Comments
 (0)