Multilanguage site with subdomains


I’m working on a project that has multiple languages using subdomains ie for english, for french and so on as it is considered the best way(?) to manage multi-language sites

As I’m using i18n packages and manage to change lang I want to replace the host to the respective subdomain and I was wondering whats the best practice to do it.

any ideas?

I’d like to reanimate this. Any advice on the topic?