-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from DaywisonSilva/master
feat: add translations
- Loading branch information
Showing
8 changed files
with
87 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"vetur.validation.template": false, | ||
"vetur.format.enable": false, | ||
"vetur.format.enable": true, | ||
"eslint.validate": ["javascript", "javascriptreact", "typescript", "vue"], | ||
|
||
"vetur.experimental.templateInterpolationService": true | ||
"vetur.experimental.templateInterpolationService": true, | ||
"editor.formatOnSave": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<template> | ||
<q-select | ||
v-model="lang" | ||
:options="langOptions" | ||
:label="$t('language')" | ||
dense | ||
borderless | ||
emit-value | ||
map-options | ||
options-dense | ||
style="min-width: 150px" | ||
color="purple" | ||
label-color="white" | ||
> | ||
<template v-slot:prepend> | ||
<q-icon name="translate" color="white"/> | ||
</template> | ||
</q-select> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
data () { | ||
return { | ||
lang: this.$i18n.locale, | ||
langOptions: [ | ||
{ value: 'en-us', label: 'English' }, | ||
{ value: 'pt-br', label: 'Português' } | ||
] | ||
} | ||
}, | ||
watch: { | ||
lang (lang) { | ||
this.$i18n.locale = lang | ||
} | ||
} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
import enUS from './en-us' | ||
import ptBR from './pt-br' | ||
|
||
export default { | ||
'en-us': enUS | ||
'en-us': enUS, | ||
'pt-br': ptBR | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// This is just an example, | ||
// so you can safely delete all default props below | ||
|
||
export default { | ||
failed: 'Action failed', | ||
success: 'Action was successful', | ||
language: 'idioma', | ||
startAugmentedReality: 'Iniciar realidade aumentada', | ||
usageInfoPartOne: 'Para instruções de uso, clique no botão', | ||
usageInfoPartTwo: 'da barra de navegação.', | ||
mainTitle: 'A arte de Antônio Peticov em Realidade Aumentada', | ||
name: 'Antonio Peticov', | ||
art: 'arte', | ||
in: 'de', | ||
augumented: 'Aumentada', | ||
reality: 'Realidade', | ||
subtitleInfo: 'Antonio Peticov (nascido em 2 de julho de 1946) é um pintor, desenhista, escultor e gravador brasileiro.' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters