How to set the language to Swedish when users visit example.se and to French when visiting example.fr?
On admin/config/regional/language/configure/url change the Part of the URL that determines language to Domain.

Then set up domains to all languagues: admin/config/regional/language/edit/LANGCODE