Why language matters
If a Spanish document is declared as English, an English voice will attempt Spanish words with English rules, which is hard to understand. Braille displays may also use the language to choose translation tables.
Checkers report a primary language failure when the catalog has no Lang entry. PDF/UA requires the language to be determinable for all text.
Document language and passage language
Set the document language once in the catalog. When a passage, quote or term is in another language, set Lang on that structure element so the screen reader switches voices for just that part. The W3C describes these in PDF techniques PDF16 and PDF19.
Proper names and widely used loanwords usually do not need their own language setting.
Setting the language
In Word, set the proofing language of the text before exporting. In a desktop PDF editor, the language option is in Document Properties under Advanced reading options.
Our automatic fixer detects the dominant language from the text and sets it in the catalog; you can override it before download. Mixed-language passages are flagged for review.
Sources
This page is general information, not legal advice. Automated checks cannot prove full compliance; some requirements need human review.