new language selection method: domain name

This commit is contained in:
Igor Chubin 2017-04-22 18:15:41 +02:00
parent 470c7739c8
commit ac939032fd
2 changed files with 5 additions and 0 deletions

View file

@ -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.

View file

@ -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