allow "visit the stable" text to be translated

This commit is contained in:
Alys
2017-11-04 20:16:47 +10:00
parent 8302c50302
commit 3fcc1c522d
2 changed files with 6 additions and 7 deletions

View File

@@ -12,13 +12,7 @@
div(:class="pet.class") div(:class="pet.class")
h4.title {{ pet.name }} h4.title {{ pet.name }}
div.text(v-if="!hideText") div.text(v-if="!hideText", v-markdown="$t('hatchedPetHowToUse')")
| Visit the
|
router-link(:to="{name: 'stable'}") {{ $t('stable') }}
|
| to feed and equip your newest pet!
// @TODO make translatable with the entire sentence in one string (translators can't do sentences in multiple parts)
button.btn.btn-primary(@click="close()") {{ $t('onward') }} button.btn.btn-primary(@click="close()") {{ $t('onward') }}
@@ -70,6 +64,7 @@
<script> <script>
import bModal from 'bootstrap-vue/lib/components/modal'; import bModal from 'bootstrap-vue/lib/components/modal';
import markdownDirective from 'client/directives/markdown';
export default { export default {
components: { components: {
@@ -80,6 +75,9 @@
pet: null, pet: null,
}; };
}, },
directives: {
markdown: markdownDirective,
},
created () { created () {
}, },

View File

@@ -75,6 +75,7 @@
"hatchAPot": "Hatch a new <%= potion %> <%= egg %>?", "hatchAPot": "Hatch a new <%= potion %> <%= egg %>?",
"hatchedPet": "You hatched a new <%= potion %> <%= egg %>!", "hatchedPet": "You hatched a new <%= potion %> <%= egg %>!",
"hatchedPetGeneric": "You hatched a new pet!", "hatchedPetGeneric": "You hatched a new pet!",
"hatchedPetHowToUse": "Visit the [Stable](/inventory/stable) to feed and equip your newest pet!",
"displayNow": "Display Now", "displayNow": "Display Now",
"displayLater": "Display Later", "displayLater": "Display Later",
"petNotOwned": "You do not own this pet.", "petNotOwned": "You do not own this pet.",