Skip to content

Commit

Permalink
feat(CreaturesLibraryPage): add new translation
Browse files Browse the repository at this point in the history
  • Loading branch information
rudnovd committed Feb 21, 2022
1 parent 75f505d commit 0a01498
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/views/CreaturesLibraryPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@
</div>

<div class="search-creature">
<input ref="searchInput" v-model="search" placeholder="Search creature" @input="searchUnit" />
<input
ref="searchInput"
v-model="search"
:placeholder="t('components.selectUnitModal.searchCreature')"
@input="searchUnit"
/>
</div>
</div>

Expand Down Expand Up @@ -55,6 +60,7 @@ import { selectedLanguage } from '@/i18n'
import { Creature } from '@/models/Creature'
import { useStore } from '@/store'
import { computed, defineComponent, onUnmounted, ref } from 'vue'
import { useI18n } from 'vue-i18n'
import { useRoute, useRouter } from 'vue-router'
let searchTimeout = 0
Expand All @@ -69,6 +75,7 @@ export default defineComponent({
const store = useStore()
const router = useRouter()
const route = useRoute()
const { t } = useI18n()
const towns = computed(() => store.towns)
const creatures = computed(() => store.creatures)
Expand Down Expand Up @@ -128,6 +135,8 @@ export default defineComponent({
return {
router,
t,
towns,
creatures,
Expand Down

0 comments on commit 0a01498

Please sign in to comment.