mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
allow "visit the stable" text to be translated
This commit is contained in:
@@ -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 () {
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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.",
|
||||||
|
|||||||
Reference in New Issue
Block a user