feat: locale specific help posts (#43290)

This commit is contained in:
Nicholas Carrigan (he/him)
2021-08-25 09:13:40 -07:00
committed by GitHub
parent 673b1caa39
commit b9d08f2fea
7 changed files with 39 additions and 3 deletions

View File

@@ -81,7 +81,9 @@ function createQuestionEpic(action$, state$, { window }) {
)}\n${i18next.t('forum-help.add-code-three')}\n\n\`\`\`\n${endingText}`
);
const category = window.encodeURIComponent(helpCategory || 'Help');
const category = window.encodeURIComponent(
i18next.t('links:help.' + helpCategory || 'Help')
);
const studentCode = window.encodeURIComponent(textMessage);
const altStudentCode = window.encodeURIComponent(altTextMessage);