← Back to Snippets lang() Published Apr 9, 2024 Returns the DOM element’s language. const lang = el => el.closest('[lang]')?.lang;