diff --git a/openedx/features/course_experience/static/course_experience/js/CourseOutline.js b/openedx/features/course_experience/static/course_experience/js/CourseOutline.js index 6a6a40cdb6..ca46563090 100644 --- a/openedx/features/course_experience/static/course_experience/js/CourseOutline.js +++ b/openedx/features/course_experience/static/course_experience/js/CourseOutline.js @@ -78,16 +78,17 @@ export class CourseOutline { // eslint-disable-line import/prefer-default-expor toggleAllButton.addEventListener('click', (event) => { const toggleAllExpanded = toggleAllButton.getAttribute('aria-expanded') === 'true'; let sectionAction; + /* globals gettext */ if (toggleAllExpanded) { toggleAllButton.setAttribute('aria-expanded', 'false'); sectionAction = collapseSection; toggleAllSpan.classList.add(extraPaddingClass); - toggleAllSpan.innerText = 'Expand All'; + toggleAllSpan.innerText = gettext('Expand All'); } else { toggleAllButton.setAttribute('aria-expanded', 'true'); sectionAction = expandSection; toggleAllSpan.classList.remove(extraPaddingClass); - toggleAllSpan.innerText = 'Collapse All'; + toggleAllSpan.innerText = gettext('Collapse All'); } const sections = Array.prototype.slice.call(document.querySelectorAll('.accordion-trigger')); sections.forEach((sectionToggleButton) => {