Just place this code anywhere in your template. I suggest placing it in the header.php just above the </head> tag ??
<script type="text/javascript">
var disqus_config = function () {
this.language = "<?php echo pll_current_language('slug'); ?>";
};</script>