how to support google and social media schema of my main domain which redirect to language [closed]

I have my main domain but if any one go to will be dinamcly redirect to prefferd language like for english for french

now my problem with seo my main domain example if i past the link with out language the domain have no markups or meta title, discription etc.. whay should i do about that i want if some one add the domain link in facebook, twitter or in google to have title, discription and logo image, favico. i’m using flask