in utils/validate_translation.py [0:0]
def load_sections(language: str):
toc = yaml.safe_load(open(os.path.join(PATH_TO_COURSE / language, "_toctree.yml"), "r"))
sections = []
for chapter in toc:
for section in chapter["sections"]:
sections.append(section["local"])
return set(sections)