mirror of
https://github.com/chubin/wttr.in
synced 2024-12-25 03:13:06 +00:00
new language selection method: domain name
This commit is contained in:
parent
470c7739c8
commit
ac939032fd
2 changed files with 5 additions and 0 deletions
|
@ -152,6 +152,10 @@ The preferred language can be forced using the `lang` option:
|
||||||
|
|
||||||
$ curl wttr.in/Berlin?lang=de
|
$ 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
|
wttr.in is currently translated in more than 45 languages and the number of supported languages
|
||||||
is constantly growing.
|
is constantly growing.
|
||||||
|
|
||||||
|
|
|
@ -50,6 +50,7 @@ Options can be combined:
|
||||||
|
|
||||||
Localization:
|
Localization:
|
||||||
|
|
||||||
|
$ curl fr.wttr.in/Paris
|
||||||
$ curl wttr.in/paris?lang=fr
|
$ curl wttr.in/paris?lang=fr
|
||||||
$ curl -H "Accept-Language: fr" wttr.in/paris
|
$ curl -H "Accept-Language: fr" wttr.in/paris
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue