Function
A course's description, outcomes, audience and highlights in a locale.
The course, with its translations
The active locale, such as es
es
The prose to show
Each field comes from the locale's translation when the course declares that field for it, and from the course's own copy otherwise, so a partial translation never leaves a blank. Titles are not part of the copy: they are never translated.
const { description, outcomes } = courseCopy(course, useLocale()); Copy
const { description, outcomes } = courseCopy(course, useLocale());
A course's description, outcomes, audience and highlights in a locale.