mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
fix(client): use correct interpolation format for strings
This commit is contained in:
@@ -107,7 +107,7 @@
|
|||||||
class="float-right align-with-tab"
|
class="float-right align-with-tab"
|
||||||
:label="$t(costumeMode ? 'useCostume' : 'autoEquipBattleGear')"
|
:label="$t(costumeMode ? 'useCostume' : 'autoEquipBattleGear')"
|
||||||
:checked="user.preferences[drawerPreference]"
|
:checked="user.preferences[drawerPreference]"
|
||||||
:hover-text="$t(drawerPreference+'PopoverText')"
|
:hover-text="$t(`${drawerPreference}PopoverText`)"
|
||||||
@change="changeDrawerPreference"
|
@change="changeDrawerPreference"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<b-modal
|
<b-modal
|
||||||
id="card"
|
id="card"
|
||||||
:title="$t(cardType + 'Card')"
|
:title="$t(`${cardType}Card`)"
|
||||||
size="md"
|
size="md"
|
||||||
:hide-footer="true"
|
:hide-footer="true"
|
||||||
>
|
>
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
class="pull-right"
|
class="pull-right"
|
||||||
:class="`inventory_special_${cardType}`"
|
:class="`inventory_special_${cardType}`"
|
||||||
></div>
|
></div>
|
||||||
<h4>{{ $t(cardType + 'Card') }}</h4>
|
<h4>{{ $t(`${cardType}Card`) }}</h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<div style="padding:10px">
|
<div style="padding:10px">
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<small class="pull-left">{{ $t(cardType + 'CardExplanation') }}</small>
|
<small class="pull-left">{{ $t(`${cardType}CardExplanation`) }}</small>
|
||||||
<button
|
<button
|
||||||
class="btn btn-secondary"
|
class="btn btn-secondary"
|
||||||
@click="readCard()"
|
@click="readCard()"
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
role="tabpanel"
|
role="tabpanel"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
v-markdown="$t('webFaqAnswer' + index, replacements)"
|
v-markdown="$t(`webFaqAnswer${index}`, replacements)"
|
||||||
class="card-body"
|
class="card-body"
|
||||||
></div>
|
></div>
|
||||||
</b-collapse>
|
</b-collapse>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
v-for="(images, category) in imgs"
|
v-for="(images, category) in imgs"
|
||||||
:key="category"
|
:key="category"
|
||||||
>
|
>
|
||||||
<h2>{{ $t('pk' + category) }}</h2>
|
<h2>{{ $t(`pk${category}`) }}</h2>
|
||||||
<div v-if="Array.isArray(images)">
|
<div v-if="Array.isArray(images)">
|
||||||
<div
|
<div
|
||||||
v-for="img in images"
|
v-for="img in images"
|
||||||
@@ -29,7 +29,7 @@
|
|||||||
v-for="(images, secondaryCategory) in images"
|
v-for="(images, secondaryCategory) in images"
|
||||||
:key="secondaryCategory"
|
:key="secondaryCategory"
|
||||||
>
|
>
|
||||||
<h3>{{ $t('pk' + secondaryCategory) }}</h3>
|
<h3>{{ $t(`pk${secondaryCategory}`) }}</h3>
|
||||||
<div
|
<div
|
||||||
v-for="img in images"
|
v-for="img in images"
|
||||||
:key="img"
|
:key="img"
|
||||||
|
|||||||
@@ -314,7 +314,7 @@
|
|||||||
class="row category-row"
|
class="row category-row"
|
||||||
>
|
>
|
||||||
<h3 class="col-12 text-center mb-3">
|
<h3 class="col-12 text-center mb-3">
|
||||||
{{ $t(key+'Achievs') }}
|
{{ $t(`${key}Achievs`) }}
|
||||||
</h3>
|
</h3>
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<div class="row achievements-row justify-content-center">
|
<div class="row achievements-row justify-content-center">
|
||||||
@@ -366,8 +366,8 @@
|
|||||||
@click="toggleAchievementsCategory(key)"
|
@click="toggleAchievementsCategory(key)"
|
||||||
>
|
>
|
||||||
{{ achievementsCategories[key].open ?
|
{{ achievementsCategories[key].open ?
|
||||||
$t('hideAchievements', {category: $t(key+'Achievs')}) :
|
$t('hideAchievements', {category: $t(`${key}Achievs`)}) :
|
||||||
$t('showAllAchievements', {category: $t(key+'Achievs')})
|
$t('showAllAchievements', {category: $t(`${key}Achievs`)})
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user