Sitemap generate only pages without language param


How to add language to sitemap?
I have two language based on quiery params lang=es / en