Make language middleware work for single template