The noticeboard used document.title to take a value from the head and place it on the body. Your new project is a small reading-room page: its <html lang="en"> tells the browser the page language. Before making changes, inspect the tree in index.html: <body> is below <html>, and the script runs at the end of the body.
The same document-reference pattern works with another property. For example, a ferry timetable could record its page title like this:
const timetableName = document.title;
document.body.dataset.timetable = timetableName;
dataset.timetable writes a data-timetable attribute. Here you need the language, not a timetable or the title: read document.documentElement.lang and write the value to document.body.dataset.language. The CSS already has a matching rule, so a badge changes when your script runs. Use the Preview to check the badge, then Submit to check the DOM attribute.
<html> element's lang through document.documentElement and put that value in document.body.dataset.language so the reading-room badge becomes active.