Skip to content

feat: Portuguese language #61

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 48 commits into from
Oct 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
eb8b169
chore: prepare the files to translate to portuguese
nazarepiedady Apr 26, 2023
262b874
docs(pt): translate `pt/index.md`
nazarepiedady May 7, 2023
478fa27
docs(pt): translate `pt/recommendations.md`
nazarepiedady May 7, 2023
bbd3123
chore(i18n): create `locales/pt.js` for portuguese documentation
nazarepiedady Aug 29, 2023
6a05940
chore(i18n): enable the portuguese inside `locales/index.js`
nazarepiedady Aug 29, 2023
5da914d
chore(i18n): set locale badges for the portuguese documentation
nazarepiedady Aug 29, 2023
e55b2b0
docs(pt): update `pt/index.md`
nazarepiedady Aug 29, 2023
cb44647
docs(pt): translate `pt/migration-build.md`
nazarepiedady Aug 29, 2023
8079362
docs(pt): update `pt/recommendations.md`
nazarepiedady Aug 29, 2023
d147a47
docs(pt): translate `pt/breaking-changes/index.md`
nazarepiedady Aug 29, 2023
57c58b5
docs(pt): translate `pt/breaking-changes/global-api.md`
nazarepiedady Aug 29, 2023
fb4b96c
docs(pt): translate `breaking-changes/global-api-treeshaking.md`
nazarepiedady Sep 3, 2023
9607249
chore: update `pnpm-lock.yaml`
nazarepiedady Sep 3, 2023
e255d7e
docs(pt): translate `pt/new/fragments.md`
nazarepiedady Sep 4, 2023
cedd037
docs(pt): translate `pt/breaking-changes/watch.md`
nazarepiedady Sep 6, 2023
93ab4f9
docs(pt): translate `pt/breaking-changes/vnode-lifecycle-events.md`
nazarepiedady Sep 6, 2023
6ed617e
docs(pt): translate `pt/breaking-changes/v-on-native-modifier-removed…
nazarepiedady Sep 6, 2023
f304185
docs(pt): translate `pt/breaking-changes/v-bind.md`
nazarepiedady Sep 6, 2023
3661296
docs(pt): translate `breaking-changes/v-if-v-for.md`
nazarepiedady Sep 12, 2023
2528ef6
docs(pt): translate `pt/breaking-changes/v-model.md`
nazarepiedady Sep 18, 2023
a02f182
docs(pt): translate `pt/breaking-changes/key-attribute.md`
nazarepiedady Sep 18, 2023
42f3083
docs(pt): translate `breaking-changes/functional-components.md`
nazarepiedady Sep 21, 2023
97f71e6
docs(pt): translate `breaking-changes/async-components.md`
nazarepiedady Sep 22, 2023
abe3478
docs(pt): translate `breaking-changes/emits-option.md`
nazarepiedady Sep 22, 2023
934e564
docs(pt): translate `breaking-changes/render-function-api.md`
nazarepiedady Sep 22, 2023
1bc5368
docs(pt): update `breaking-changes/render-function-api.md`
nazarepiedady Sep 22, 2023
5fe482f
docs(pt): translate `breaking-changes/slots-unification.md`
nazarepiedady Sep 23, 2023
f5eafb2
docs(pt): translate `breaking-changes/listeners-removed.md`
nazarepiedady Sep 23, 2023
07c5289
docs(pt): translate `breaking-changes/attrs-includes-class-style.md`
nazarepiedady Sep 23, 2023
7654cb0
docs(pt): translate `breaking-changes/custom-elements-interop.md`
nazarepiedady Oct 4, 2023
da9ea7a
docs(pt): translate `breaking-changes/keycode-modifiers.md`
nazarepiedady Oct 4, 2023
1a44140
docs(pt): translate `api/breaking-changes/events-api.md`
nazarepiedady Oct 7, 2023
15a6afb
docs(pt): translate `api/breaking-changes/filters.md`
nazarepiedady Oct 7, 2023
5361f4d
docs(pt): translate `breaking-changes/inline-template-attribute.md`
nazarepiedady Oct 8, 2023
0437037
docs(pt): translate `breaking-changes/children.md`
nazarepiedady Oct 8, 2023
71bf5a2
docs(pt): translate `breaking-changes/props-data.md`
nazarepiedady Oct 8, 2023
67b4ad9
docs(pt): translate `breaking-changes/data-option.md`
nazarepiedady Oct 13, 2023
c06d44c
chore: update `images/transitions.svg` to support color scheme
nazarepiedady Oct 13, 2023
3fb70c6
docs(pt): translate `breaking-changes/attribute-coercion.md`
nazarepiedady Oct 14, 2023
fd21a9e
docs(pt): translate `breaking-changes/mount-changes.md`
nazarepiedady Oct 16, 2023
24f629f
docs(pt): translate `breaking-changes/props-default-this.md`
nazarepiedady Oct 18, 2023
2b67365
docs(pt): translate `breaking-changes/transition-as-root.md`
nazarepiedady Oct 18, 2023
034353e
docs(pt): translate `breaking-changes/transition-group.md`
nazarepiedady Oct 18, 2023
ea42d9c
docs(pt): translate `breaking-changes/transition.md`
nazarepiedady Oct 18, 2023
665a26e
docs(pt): translate `breaking-changes/custom-directives.md`
nazarepiedady Oct 18, 2023
8b6c9ab
docs(pt): review and update `recommendations.md`
nazarepiedady Oct 18, 2023
5024e33
docs(pt): review and update `index.md`
nazarepiedady Oct 18, 2023
9f0f610
docs(pt): review and update `recommendations.md`
nazarepiedady Oct 19, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .vitepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export default {
{text: '中文简体', link: '/zh/'},
{text: '日本語(翻訳中)', link: '/ja/'},
{text: 'Українська', link: '/uk/'},
{text: 'Português', link: '/pt/'}
]
},
locales: locales.themeConfig
Expand Down
3 changes: 3 additions & 0 deletions .vitepress/locales/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,21 @@ import en from './en'
import zh from './zh'
import ja from './ja'
import uk from './uk'
import pt from './pt'

export default {
vitepressConfig: {
'/': en.vitepressConfig,
'/zh/': zh.vitepressConfig,
'/ja/': ja.vitepressConfig,
'/uk/': uk.vitepressConfig,
'/pt/': pt.vitepressConfig,
},
themeConfig: {
'/': en.themeConfig,
'/zh/': zh.themeConfig,
'/ja/': ja.themeConfig,
'/uk/': uk.themeConfig,
'/pt/': pt.themeConfig,
}
}
176 changes: 176 additions & 0 deletions .vitepress/locales/pt.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
export default {
vitepressConfig: {
title: 'Guia de Migração da Vue 3',
description: 'Guia sobre a migração da Vue 2 à Vue 3',
lang: 'pt-PT'
},
themeConfig: {
nav: [
{ text: 'Documentação da Vue 3', link: 'https://pt.vuejs.org' },
],

sidebar: [
{
text: 'Guide',
items: [
{ text: 'Visão Geral', link: '/pt/' },
{ text: 'Novas Recomendações', link: '/pt/recommendations' },
{ text: 'Construção de Migração', link: '/pt/migration-build' },
{
text: 'Mudanças de Rutura',
link: '/pt/breaking-changes/'
}
]
},
{
text: 'API Global',
items: [
{
text: 'Instância e Aplicação da API Global',
link: '/pt/breaking-changes/global-api'
},
{
text: 'Agitação de Árvore da API Global',
link: '/pt/breaking-changes/global-api-treeshaking'
}
]
},
{
text: 'Diretivas do Modelo de Marcação',
items: [
{ text: 'v-model', link: '/pt/breaking-changes/v-model' },
{
text: 'Mudança de Uso de `key`',
link: '/pt/breaking-changes/key-attribute'
},
{
text: 'Precedência de `v-if` vs. `v-for`',
link: '/pt/breaking-changes/v-if-v-for'
},
{
text: 'Comportamento de Combinação de `v-bind`',
link: '/pt/breaking-changes/v-bind'
},
{
text: 'Modificador `v-on.native` removido',
link: '/pt/breaking-changes/v-on-native-modifier-removed'
}
]
},
{
text: 'Componentes',
items: [
{
text: 'Componentes Funcionais',
link: '/pt/breaking-changes/functional-components'
},
{
text: 'Componentes Assíncronos',
link: '/pt/breaking-changes/async-components'
},
{
text: 'Opção `emits`',
link: '/pt/breaking-changes/emits-option'
}
]
},
{
text: 'Função de Interpretação',
items: [
{
text: 'API da Função de Interpretação',
link: '/pt/breaking-changes/render-function-api'
},
{
text: 'Unificação de Ranhuras',
link: '/pt/breaking-changes/slots-unification'
},
{
text: '`$listeners` combinados no `$attrs`',
link: '/pt/breaking-changes/listeners-removed'
},
{
text: '`$attrs` inclui `class` & `style`',
link: '/pt/breaking-changes/attrs-includes-class-style'
}
]
},
{
text: 'Elementos Personalizados',
items: [
{
text: 'Mudanças Interoperacionais dos Elementos Personalizados',
link: '/pt/breaking-changes/custom-elements-interop'
}
]
},
{
text: 'APIs Removidas',
items: [
{
text: 'Modificadores de `keyCode` de `v-on`',
link: '/pt/breaking-changes/keycode-modifiers'
},
{ text: 'API de Eventos', link: '/pt/breaking-changes/events-api' },
{ text: 'Filtros', link: '/pt/breaking-changes/filters' },
{
text: '`inline-template`',
link: '/pt/breaking-changes/inline-template-attribute'
},
{
text: '`$children`', link: '/pt/breaking-changes/children'
},
{
text: 'Opção `propsData`',
link: '/pt/breaking-changes/props-data'
}
]
},
{
text: 'Outras Pequenas Mudanças',
items: [
{
text: 'Comportamento de Coerção de Atributo',
link: '/pt/breaking-changes/attribute-coercion'
},
{
text: 'Diretivas Personalizadas',
link: '/pt/breaking-changes/custom-directives'
},
{
text: 'Opção `data`',
link: '/pt/breaking-changes/data-option'
},
{
text: 'Mudanças da API de Montagem',
link: '/pt/breaking-changes/mount-changes'
},
{
text: 'Acesso de `this` da Função Padrão das Propriedades',
link: '/pt/breaking-changes/props-default-this'
},
{
text: 'Mudança da Classe de Transição',
link: '/pt/breaking-changes/transition'
},
{
text: '`Transition` como Raiz',
link: '/pt/breaking-changes/transition-as-root'
},
{
text: 'Elemento de Raiz do Grupo de Transição',
link: '/pt/breaking-changes/transition-group'
},
{
text: 'Eventos do Ciclo de Vida do Nó Virtual',
link: '/pt/breaking-changes/vnode-lifecycle-events'
},
{
text: 'Observação dos Vetores',
link: '/pt/breaking-changes/watch'
}
]
}
]
}
}
6 changes: 6 additions & 0 deletions .vitepress/theme/MigrationBadges.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ const localeBadges = {
breaking: 'несумісно',
removed: 'видалено',
updated: 'змінено'
},
'pt-PT': {
new: 'novo',
breaking: 'rutura',
removed: 'removido',
updated: 'atualizado'
}
}

Expand Down
Loading