Hi,
If you can use the root master page then you can use code mentioned in this post for your page to add lang attribute at run time. If not then you can modify or create a new page template without any master page nesting and include lang attribute there.