Skip to content

Commit

Permalink
fix(PageFooter): add 'about' word in locales
Browse files Browse the repository at this point in the history
  • Loading branch information
rudnovd committed Mar 6, 2022
1 parent 1a9204e commit 30d9f47
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/PageFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<footer>
<div class="left-side">
<button v-if="!about.hide" @click="showAboutModal = true">
{{ about.text }}
{{ about.text || t('components.pageFooter.about') }}
</button>

<select v-model="selectedLocale" @change="changeLocale">
Expand Down Expand Up @@ -82,7 +82,7 @@ export default defineComponent({
props: {
about: {
type: Object as PropType<{ hide?: boolean; text?: string }>,
default: () => ({ hide: false, text: 'About' }),
default: () => ({ hide: false, text: null }),
},
border: {
type: String,
Expand Down
1 change: 1 addition & 0 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"kills": "Kills"
},
"pageFooter": {
"about": "About",
"howToUse": "How to use",
"language": "Language",
"foundAnError": "Found an error?",
Expand Down
1 change: 1 addition & 0 deletions src/locales/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
}
},
"pageFooter": {
"about": "О проекте",
"foundAnError": "Нашли ошибку?",
"howToUse": "Как пользоваться",
"language": "Язык",
Expand Down

0 comments on commit 30d9f47

Please sign in to comment.