new language selection method: domain name

pull/101/head
Igor Chubin 8 years ago
parent 470c7739c8
commit ac939032fd

@ -152,6 +152,10 @@ The preferred language can be forced using the `lang` option:
$ curl wttr.in/Berlin?lang=de
The third option is to choose the language using DNS name used in the query:
$ curl de.wttr.in/Berlin
wttr.in is currently translated in more than 45 languages and the number of supported languages
is constantly growing.

@ -50,6 +50,7 @@ Options can be combined:
Localization:
$ curl fr.wttr.in/Paris
$ curl wttr.in/paris?lang=fr
$ curl -H "Accept-Language: fr" wttr.in/paris

Loading…
Cancel
Save