fix(links): interpolate in Markdown
This commit is contained in:
@@ -70,7 +70,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
v-markdown="$t('chooseClassLearnMarkdown')"
|
||||
v-markdown="$t('chooseClassLearnMarkdown', { classLink })"
|
||||
class="text-center"
|
||||
></div>
|
||||
<div class="modal-actions text-center">
|
||||
@@ -218,6 +218,7 @@ export default {
|
||||
linkOpen: '<a href="/static/faq#what-classes" target="_blank" rel="noreferrer noopener">',
|
||||
linkClose: '</a>',
|
||||
},
|
||||
classLink: '/static/faq#what-classes',
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
{{ $t('contribModal', {name: user.profile.name, level: user.contributor.level}) }}
|
||||
<br>
|
||||
<a
|
||||
:href="$t('conRewardsURL')"
|
||||
href="https://github.com/HabitRPG/habitica/wiki/Contributing-to-Habitica#contributor-tier-rewards"
|
||||
rel="noopener noreferrer"
|
||||
target="_blank"
|
||||
>{{ $t('contribLink') }}</a>
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
<strong v-once>{{ $t('challengeDescription') }} *</strong>
|
||||
</label>
|
||||
<a
|
||||
v-markdown="$t('markdownFormattingHelp')"
|
||||
v-markdown="$t('markdownFormattingHelp', { markdownLink })"
|
||||
class="float-right"
|
||||
></a>
|
||||
<textarea
|
||||
@@ -364,6 +364,7 @@ export default {
|
||||
groups: [],
|
||||
textbox: null,
|
||||
activeField: 'name',
|
||||
markdownLink: 'https://github.com/HabitRPG/habitica/wiki/Markdown-in-Habitica',
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
{{ label }}
|
||||
</h3>
|
||||
<div
|
||||
v-markdown="$t('markdownFormattingHelp')"
|
||||
v-markdown="$t('markdownFormattingHelp', { markdownLink })"
|
||||
class="float-right"
|
||||
></div>
|
||||
<div
|
||||
@@ -127,6 +127,7 @@ export default {
|
||||
},
|
||||
textbox: null,
|
||||
MAX_MESSAGE_LENGTH: MAX_MESSAGE_LENGTH.toString(),
|
||||
markdownLink: 'https://github.com/HabitRPG/habitica/wiki/Markdown-in-Habitica',
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
|
||||
@@ -159,7 +159,7 @@ label.custom-control-label(v-once) {{ $t('allowGuildInvitationsFromNonMembers')
|
||||
<strong v-else>{{ $t('groupDescription') }} *</strong>
|
||||
</label>
|
||||
<a
|
||||
v-markdown="$t('markdownFormattingHelp')"
|
||||
v-markdown="$t('markdownFormattingHelp', { markdownLink })"
|
||||
class="float-right"
|
||||
></a>
|
||||
<textarea
|
||||
@@ -420,6 +420,7 @@ export default {
|
||||
type: '',
|
||||
},
|
||||
membersToInvite: [],
|
||||
markdownLink: 'https://github.com/HabitRPG/habitica/wiki/Markdown-in-Habitica',
|
||||
};
|
||||
|
||||
const hashedCategories = {};
|
||||
|
||||
@@ -83,7 +83,7 @@
|
||||
</div>
|
||||
<div class="col-md-6 mb-5 mb-md-0">
|
||||
<img :src="makeUrl('features_opensource.png')">
|
||||
<h2>{{ $t('marketing3Lead2Title') }}</h2>
|
||||
<h2>{{ $t('marketing3Lead2Title', { githubLink }) }}</h2>
|
||||
<p
|
||||
v-markdown="$t('marketing3Lead2')"
|
||||
class="description"
|
||||
@@ -180,6 +180,11 @@ export default {
|
||||
directives: {
|
||||
markdown: markdownDirective,
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
githubLink: 'https://github.com/HabitRPG/habitica/wiki/Contributing-to-Habitica',
|
||||
};
|
||||
},
|
||||
mounted () {
|
||||
this.$store.dispatch('common:setTitle', {
|
||||
section: this.$t('features'),
|
||||
|
||||
@@ -138,7 +138,7 @@
|
||||
"healerText": "Healers stand impervious against harm, and extend that protection to others. Missed Dailies and bad Habits don't faze them much, and they have ways to recover Health from failure. Play a Healer if you enjoy assisting others in your Party, or if the idea of cheating Death through hard work inspires you!",
|
||||
"optOutOfClasses": "Opt Out",
|
||||
"chooseClass": "Choose your Class",
|
||||
"chooseClassLearnMarkdown": "[Learn more about Habitica's class system](/static/faq#what-classes)",
|
||||
"chooseClassLearnMarkdown": "[Learn more about Habitica's class system](<%= classLink %>)",
|
||||
"optOutOfClassesText": "Not ready to choose? There's no rush! If you opt out, you can read about each Class in <%= linkOpen %>our FAQ<%= linkClose %> and visit Settings to enable the Class System when you're ready.",
|
||||
"selectClass": "Select <%= heroClass %>",
|
||||
"select": "Select",
|
||||
|
||||
@@ -41,7 +41,6 @@
|
||||
"backerTier": "Backer Tier",
|
||||
"playerTiers": "Player Tiers",
|
||||
"tier": "Tier",
|
||||
"conRewardsURL": "https://github.com/HabitRPG/habitica/wiki/Contributing-to-Habitica#contributor-tier-rewards",
|
||||
"surveysSingle": "Helped Habitica grow, either by filling out a survey or helping with a major testing effort. Thank you!",
|
||||
"surveysMultiple": "Helped Habitica grow on <%= count %> occasions, either by filling out a survey or helping with a major testing effort. Thank you!",
|
||||
"blurbHallPatrons": "This is the Hall of Patrons, where we honor the noble adventurers who backed Habitica's original Kickstarter. We thank them for helping us bring Habitica to life!",
|
||||
|
||||
@@ -147,10 +147,6 @@
|
||||
"faqQuestion71": "How does Automatic Allocation work?",
|
||||
"webFaqAnswer71": "The Automatic Allocation feature automatically assigns stat points according to one of the following distribution methods:\n\n* Distribute evenly - Assigns the same number of points to each attribute\n* Distribute based on class - Assigns more points to the attributes important to your class\n* Distribute based on task activity - Assigns points based on Strength, Intelligence, Constitution, and Perception categories associated with the tasks you complete\n\nIf you choose not to use Automatic Allocation, you can manually assign your stat points from the Stats section.",
|
||||
|
||||
"iosFaqStillNeedHelp": "If you have a question that isn't on this list or on the [Wiki FAQ](https://habitica.fandom.com/wiki/FAQ), use the Ask a Question form [LINK NEEDED]! We're happy to help.",
|
||||
"androidFaqStillNeedHelp": "If you have a question that isn't on this list or on the [Wiki FAQ](https://habitica.fandom.com/wiki/FAQ), use the Ask a Question form [LINK NEEDED]! We're happy to help.",
|
||||
"webFaqStillNeedHelp": "If you have a question that isn't on this list or on the [Wiki FAQ](https://habitica.fandom.com/wiki/FAQ), use the Ask a Question form [LINK NEEDED]! We're happy to help.",
|
||||
|
||||
"sunsetFaqTitle": "Habitica Tavern and Guild Service Discontinuation FAQ",
|
||||
|
||||
"sunsetFaqPara1": "Due to a number of factors, including changes in how our player base interacts with Habitica and new content regulations, we are making the difficult decision to discontinue Tavern and Guild services on <strong>August 8, 2023</strong>.",
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
"marketing3Lead1Title": "Android & iOS apps",
|
||||
"marketing3Lead1": "You can get Habitica on your Android or iOS device to check off tasks anywhere. Check out our award winning apps for a fresh approach to getting things done.",
|
||||
"marketing3Lead2Title": "Open-Source community",
|
||||
"marketing3Lead2": "We're proud to be an open-source project that welcomes contributions from our dedicated community. Make Habitica fit your own needs or contribute to improve the experience of all players around the world. Visit us on [GitHub](https://github.com/HabitRPG/habitica/wiki/Contributing-to-Habitica) to learn more!",
|
||||
"marketing3Lead2": "We're proud to be an open-source project that welcomes contributions from our dedicated community. Make Habitica fit your own needs or contribute to improve the experience of all players around the world. Visit us on [GitHub](<%= githubLink %>) to learn more!",
|
||||
"marketing4Header": "Beyond household chores",
|
||||
"marketing4Lead1": "Education is one of the best places for a little gamification! Break through the monotony of everyday classwork by adding some game play into the mix. Habitica can be a fun way to track homework, make classroom Challenges, and let your students show off their accomplishments.",
|
||||
"marketing4Lead1Title": "Gamification in education",
|
||||
@@ -76,8 +76,6 @@
|
||||
"pkAnswer6": "Lots of different people use Habitica! More than half of our users are ages 18 to 34, but we have grandparents using the site with their young grandkids and every age in-between. Often families will join a party and battle monsters together. <br /> Many of our users have a background in games, but surprisingly, when we ran a survey a while back, 40% of our users identified as non-gamers! So it looks like our method can be effective for anyone who wants productivity and wellness to feel more fun.",
|
||||
"pkQuestion7": "Why does Habitica use pixel art?",
|
||||
"pkAnswer7": "Habitica uses pixel art for several reasons. In addition to the fun nostalgia factor, pixel art is very approachable to our volunteer artists who want to chip in. It's much easier to keep our pixel art consistent even when lots of different artists contribute, and it lets us quickly generate a ton of new content!",
|
||||
"pkQuestion8": "How has Habitica affected people's real lives?",
|
||||
"pkAnswer8": "You can find lots of testimonials for how Habitica has helped people here: https://habitversary.tumblr.com",
|
||||
"pkMoreQuestions": "Do you have a question that’s not on this list? Send an email to admin@habitica.com!",
|
||||
"pkPromo": "Promos",
|
||||
"pkLogo": "Logos",
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
"options": "Options",
|
||||
"markdownHelpLink": "Markdown formatting help",
|
||||
"bold": "**Bold**",
|
||||
"markdownImageEx": "",
|
||||
"code": "`code`",
|
||||
"achievements": "Achievements",
|
||||
"basicAchievs": "Basic Achievements",
|
||||
|
||||
@@ -285,7 +285,7 @@
|
||||
"guildSummaryPlaceholder": "Write a short explanation of your Group. What is the main purpose of the Group and what will its members do?",
|
||||
"groupDescription": "Description",
|
||||
"guildDescriptionPlaceholder": "Use this section to go into more detail about everything that members should know about your Group. Useful tips, helpful links, and encouraging statements all go here!",
|
||||
"markdownFormattingHelp": "[Markdown formatting help](https://github.com/HabitRPG/habitica/wiki/Markdown-in-Habitica)",
|
||||
"markdownFormattingHelp": "[Markdown formatting help](<%= markdownLink %>)",
|
||||
"partyDescriptionPlaceholder": "This is our Party's description. It describes what we do in this Party. If you want to learn more about what we do in this Party, read the description. Party on.",
|
||||
"guildGemCostInfo": "A Gem cost promotes high quality Guilds and is transferred into your Guild's bank.",
|
||||
"noGuildsTitle": "You aren't a member of any Guilds.",
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
"needTips": "Need some tips on how to begin? Here's a straightforward guide!",
|
||||
|
||||
"step1": "Step 1: Enter Tasks",
|
||||
"webStep1Text": "Habitica is nothing without real-world goals, so enter a few tasks. You can add more later as you think of them! All tasks can be added by clicking the green \"Create\" button.\n* **Set up [To Do's](https://habitica.fandom.com/wiki/To_Do%27s):** Enter tasks you do once or rarely in the To Do's column, one at a time. You can click on the tasks to edit them and add checklists, due dates, and more!\n* **Set up [Dailies](https://habitica.fandom.com/wiki/Dailies):** Enter activities you need to do daily or on a particular day of the week, month, or year in the Dailies column. Click task to edit when it will be due and/or set a start date. You can also make it due on a repeating basis, for example, every 3 days.\n* **Set up [Habits](https://habitica.fandom.com/wiki/Habits):** Enter habits you want to establish in the Habits column. You can edit the Habit to change it to just a good habit :heavy_plus_sign: or a bad habit :heavy_minus_sign:\n* **Set up [Rewards](https://habitica.fandom.com/wiki/Rewards):** In addition to the in-game Rewards offered, add activities or treats which you want to use as a motivation to the Rewards column. It's important to give yourself a break or allow some indulgence in moderation!\n* If you need inspiration for which tasks to add, you can look at the wiki's pages on [Sample Habits](https://habitica.fandom.com/wiki/Sample_Habits), [Sample Dailies](https://habitica.fandom.com/wiki/Sample_Dailies), [Sample To Do's](https://habitica.fandom.com/wiki/Sample_To_Do%27s), and [Sample Rewards](https://habitica.fandom.com/wiki/Sample_Custom_Rewards).",
|
||||
"webStep1Text": "Habitica is nothing without real-world goals, so enter a few tasks. You can add more later as you think of them! All tasks can be added by clicking the green \"Create\" button.\n* **Set up To Do's:** Enter tasks you do once or rarely in the To Do's column, one at a time. You can click on the tasks to edit them and add checklists, due dates, and more!\n* **Set up Dailies:** Enter activities you need to do daily or on a particular day of the week, month, or year in the Dailies column. Click task to edit when it will be due and/or set a start date. You can also make it due on a repeating basis, for example, every 3 days.\n* **Set up Habits:** Enter habits you want to establish in the Habits column. You can edit the Habit to change it to just a good habit :heavy_plus_sign: or a bad habit :heavy_minus_sign:\n* **Set up Rewards:** In addition to the in-game Rewards offered, add activities or treats which you want to use as a motivation to the Rewards column. It's important to give yourself a break or allow some indulgence in moderation!\n*",
|
||||
|
||||
"step2": "Step 2: Gain Points by Doing Things in Real Life",
|
||||
"webStep2Text": "Now, start tackling your goals from the list! As you complete tasks and check them off in Habitica, you will gain [Experience](https://habitica.fandom.com/wiki/Experience_Points), which helps you level up, and [Gold](https://habitica.fandom.com/wiki/Gold_Points), which allows you to purchase Rewards. If you fall into bad habits or miss your Dailies, you will lose [Health](https://habitica.fandom.com/wiki/Health_Points). In that way, the Habitica Experience and Health bars serve as a fun indicator of your progress toward your goals. You'll start seeing your real life improve as your character advances in the game.",
|
||||
"webStep2Text": "Now, start tackling your goals from the list! As you complete tasks and check them off in Habitica, you will gain Experience, which helps you level up, and Gold, which allows you to purchase Rewards. If you fall into bad habits or miss your Dailies, you will lose Health. In that way, the Habitica Experience and Health bars serve as a fun indicator of your progress toward your goals. You'll start seeing your real life improve as your character advances in the game.",
|
||||
|
||||
"step3": "Step 3: Customize and Explore Habitica",
|
||||
"webStep3Text": "Once you're familiar with the basics, you can get even more out of Habitica with these nifty features:\n * Organize your Tasks with [tags](https://habitica.fandom.com/wiki/Tags) (edit a Task to add them).\n * Customize your [Avatar](https://habitica.fandom.com/wiki/Avatar) by clicking the user icon in the upper-right corner.\n * Buy your [Equipment](https://habitica.fandom.com/wiki/Equipment) under Rewards or from the [Shops](<%= shopUrl %>), and change it under [Inventory > Equipment](<%= equipUrl %>).\n * Connect with other users via the [Looking for Party tool](https://habitica.com/looking-for-party).\n * Hatch [Pets](https://habitica.fandom.com/wiki/Pets) by collecting [Eggs](https://habitica.fandom.com/wiki/Eggs) and [Hatching Potions](https://habitica.fandom.com/wiki/Hatching_Potions). [Feed](https://habitica.fandom.com/wiki/Food) them to create [Mounts](https://habitica.fandom.com/wiki/Mounts).\n * At level 10: Choose a particular [Class](https://habitica.fandom.com/wiki/Class_System) and then use Class-specific [skills](https://habitica.fandom.com/wiki/Skills) (levels 11 to 14).\n * Form a Party with your friends (by clicking [Party](<%= partyUrl %>) in the navigation bar) to stay accountable and earn a Quest scroll.\n * Defeat monsters and collect objects on [Quests](https://habitica.fandom.com/wiki/Quests) (you will be given a quest at level 15).",
|
||||
"webStep3Text": "Once you're familiar with the basics, you can get even more out of Habitica with these nifty features:\n * Organize your Tasks with tags (edit a Task to add them).\n * Customize your Avatar by clicking the user icon in the upper-right corner.\n * Buy your Equipment under Rewards or from the Shops, and change it under Inventory > Equipment.\n * Connect with other users via the Looking for Party tool.\n * Hatch Pets by collecting Eggs and Hatching Potions. Feed them to create Mounts.\n * At level 10: Choose a particular Class and then use Class-specific skills (levels 11 to 14).\n * Form a Party with your friends (by clicking Party in the navigation bar) to stay accountable and earn a Quest scroll.\n * Defeat monsters and collect objects on Quests (you will be given a quest at level 15).",
|
||||
|
||||
"overviewQuestionsRevised": "Have questions? Check out the <%= linkOpen %>FAQ<%= linkClose %>! If your question isn't mentioned there, you can ask for further help using this form: "
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user