habitica-self-host/website/common/script/content/faq.js

85 lines
1.6 KiB
JavaScript
Raw Normal View History

2016-03-03 03:36:27 +00:00
import t from './translation';
2015-10-03 11:39:10 +00:00
const questionList = [
{
heading: 'overview',
translationIndex: 0,
},
{
heading: 'set-up-tasks',
translationIndex: 1,
},
{
heading: 'sample-tasks',
translationIndex: 2,
},
{
heading: 'task-color',
translationIndex: 3,
},
{
heading: 'health',
translationIndex: 4,
},
{
heading: 'party-with-friends',
translationIndex: 5,
},
{
heading: 'pets-mounts',
translationIndex: 6,
},
{
heading: 'character-classes',
translationIndex: 7,
},
{
heading: 'blue-mana-bar',
translationIndex: 8,
},
{
heading: 'monsters-quests',
translationIndex: 9,
},
{
heading: 'gems',
translationIndex: 10,
},
{
heading: 'bugs-features',
translationIndex: 11,
},
{
heading: 'group-plans',
translationIndex: 13,
excludedPlatforms: ['android', 'ios'],
},
];
2015-10-03 11:39:10 +00:00
2019-10-08 14:57:10 +00:00
const faq = {
questions: [],
stillNeedHelp: {
ios: t('iosFaqStillNeedHelp'),
web: t('webFaqStillNeedHelp'),
},
};
2015-10-03 11:39:10 +00:00
questionList.forEach(listEntry => {
2019-10-08 14:57:10 +00:00
const question = {
exclusions: listEntry.excludedPlatforms || [],
heading: listEntry.heading,
question: t(`faqQuestion${listEntry.translationIndex}`),
android: t(`androidFaqAnswer${listEntry.translationIndex}`),
ios: t(`iosFaqAnswer${listEntry.translationIndex}`),
web: t(`webFaqAnswer${listEntry.translationIndex}`, {
// TODO: Need to pull these values from nconf
techAssistanceEmail: 'admin@habitica.com',
wikiTechAssistanceEmail: 'mailto:admin@habitica.com',
}),
2015-10-03 11:39:10 +00:00
};
faq.questions.push(question);
});
2015-10-03 11:39:10 +00:00
2019-10-01 15:53:48 +00:00
export default faq;