diff --git a/includes/ScribuntoContentHandler.php b/includes/ScribuntoContentHandler.php index 35112f8e..5998b5f4 100644 --- a/includes/ScribuntoContentHandler.php +++ b/includes/ScribuntoContentHandler.php @@ -158,6 +158,7 @@ class ScribuntoContentHandler extends CodeContentHandler { $html .= $parserOutput->getRawText(); } else { $parserOutput = new ParserOutput(); + $parserOutput->setLanguage( $parserOptions->getTargetLanguage() ?? $docTitle->getPageLanguage() ); } if ( $docTitle ) {