Would it be possible to make MediaWiki expose the intended user interface language via CSS? Being able to do something like
html.uselang-de #p-navigation h5 { text-transform: none; }
would make it easy to solve bug 1553, "Navigation headings should not be lower-cased in German": https://bugzilla.wikimedia.org/show_bug.cgi?id=1553