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

29 lines
634 B
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
2016-03-03 03:36:27 +00:00
const NUMBER_OF_QUESTIONS = 12;
2015-10-03 11:39:10 +00:00
let faq = {
questions: [],
stillNeedHelp: {
ios: t('iosFaqStillNeedHelp'),
web: t('webFaqStillNeedHelp'),
},
};
2015-10-03 11:39:10 +00:00
2015-11-15 14:16:55 +00:00
for (let i = 0; i <= NUMBER_OF_QUESTIONS; i++) {
let question = {
question: t(`faqQuestion${i}`),
ios: t(`iosFaqAnswer${i}`),
android: t(`androidFaqAnswer${i}`),
web: t(`webFaqAnswer${i}`, {
// 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
}
module.exports = faq;