mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 22:27:26 +01:00
* Fix User > Profile showing {getProgressDisplay()}
* Remove bad nextRewardAt check
* 1st iteration of issue #8385 - more pending
* #8385 config and jade fixes, tests pending
* #8385 fixing lint errors
* Fix faqs string and test
* Fix faq.jade and add workaround for faq.js
* Fixing accidental checking for faq.js
* fix emails in faq.js
* fetch emails once in auth.js
* Fixing community manager email in auth.js
(cherry picked from commit 842fbe42a8)
28 lines
594 B
JavaScript
28 lines
594 B
JavaScript
import t from './translation';
|
|
|
|
const NUMBER_OF_QUESTIONS = 12;
|
|
|
|
let faq = {
|
|
questions: [],
|
|
stillNeedHelp: {
|
|
ios: t('iosFaqStillNeedHelp'),
|
|
web: t('webFaqStillNeedHelp'),
|
|
},
|
|
};
|
|
|
|
for (let i = 0; i <= NUMBER_OF_QUESTIONS; i++) {
|
|
let question = {
|
|
question: t(`faqQuestion${i}`),
|
|
ios: t(`iosFaqAnswer${i}`),
|
|
web: t(`webFaqAnswer${i}`, {
|
|
// TODO: Need to pull these values from nconf
|
|
techAssistanceEmail: 'admin@habitica.com',
|
|
wikiTechAssistanceEmail: 'mailto:admin@habitica.com',
|
|
}),
|
|
};
|
|
|
|
faq.questions.push(question);
|
|
}
|
|
|
|
module.exports = faq;
|