From ac939032fd593b14584ce5c38a86a68026a0190a Mon Sep 17 00:00:00 2001 From: Igor Chubin Date: Sat, 22 Apr 2017 18:15:41 +0200 Subject: [PATCH] new language selection method: domain name --- README.md | 4 ++++ share/help.txt | 1 + 2 files changed, 5 insertions(+) diff --git a/README.md b/README.md index 9679ac1..3eee0ae 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/share/help.txt b/share/help.txt index 040c8c9..4bf8464 100644 --- a/share/help.txt +++ b/share/help.txt @@ -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