# HelloSalut

> Say hello in someone's own language with HelloSalut: get the word for hello in a language, in a country's main language, or for the country an IP address is in. Handy for personal greetings in emails and messages. No account or API key required.

App · 3 actions. Web page: https://docs.lodol.com/docs/integrations/hellosalut

## Actions

### Get hello for a country

Get the word for hello in the main language of a country, from its two-letter code such as 'DE' or 'JP'. Countries HelloSalut has no greeting for come back as 'Hello' with 'found' set to false. No API key required.

**Inputs**

- Country code (`country`, text, required): The country's two-letter ISO code, such as 'DE'.

**Outputs**

- `country_code` (text): For a country or IP address lookup, the two-letter code of the country the greeting is for, e.g. 'GB'. Empty for a language lookup.
- `found` (true/false): True when HelloSalut had a greeting for what was asked. False means 'hello' is the English fallback.
- `hello` (text): The word for hello, e.g. 'Salut' or 'こんにちは'. When HelloSalut has no greeting for what was asked, this is 'Hello'.
- `language_code` (text): For a language lookup, the language HelloSalut matched, e.g. 'fr'. Empty for the other lookups.
- `language_name` (text): For a language lookup, the language's name in English, e.g. 'French'. Empty for the other lookups.
- `matched_by` (text): What the greeting was chosen by: 'language', 'country' or 'ip'.
- `query` (text): What was looked up, tidied: a language code ('fr'), a country code ('DE') or an IPv4 address.
- `summary` (text): One line with the greeting, e.g. "'Salut' is hello in French".

**Example output**

```json
{
  "country_code": "JP",
  "found": true,
  "hello": "\u3053\u3093\u306b\u3061\u306f",
  "language_code": null,
  "language_name": null,
  "matched_by": "country",
  "query": "JP",
  "summary": "'\u3053\u3093\u306b\u3061\u306f' is hello in JP"
}
```

### Get hello for an IP address

Get the word for hello in the language of the country an IPv4 address is in, such as a visitor's or a sign-up's address. Private addresses and ones HelloSalut cannot place come back as 'Hello' with 'found' set to false. No API key required.

**Inputs**

- IP address (`ip_address`, text, required): An IPv4 address, such as 81.2.69.142. HelloSalut cannot read IPv6 addresses.

**Outputs**

- `country_code` (text): For a country or IP address lookup, the two-letter code of the country the greeting is for, e.g. 'GB'. Empty for a language lookup.
- `found` (true/false): True when HelloSalut had a greeting for what was asked. False means 'hello' is the English fallback.
- `hello` (text): The word for hello, e.g. 'Salut' or 'こんにちは'. When HelloSalut has no greeting for what was asked, this is 'Hello'.
- `language_code` (text): For a language lookup, the language HelloSalut matched, e.g. 'fr'. Empty for the other lookups.
- `language_name` (text): For a language lookup, the language's name in English, e.g. 'French'. Empty for the other lookups.
- `matched_by` (text): What the greeting was chosen by: 'language', 'country' or 'ip'.
- `query` (text): What was looked up, tidied: a language code ('fr'), a country code ('DE') or an IPv4 address.
- `summary` (text): One line with the greeting, e.g. "'Salut' is hello in French".

**Example output**

```json
{
  "country_code": "GB",
  "found": true,
  "hello": "Hi",
  "language_code": null,
  "language_name": null,
  "matched_by": "ip",
  "query": "81.2.69.142",
  "summary": "'Hi' is hello for 81.2.69.142 (GB)"
}
```

### Get hello in a language

Get the word for hello in a language, from a language code such as 'fr' or a browser language tag such as 'fr-CA' (a regional variant HelloSalut lacks uses its base language). Handy for greeting a contact in their own language. Unknown languages come back as 'Hello' with 'found' set to false. No API key required.

**Inputs**

- Language (`language`, text, required): A language code such as 'fr', 'ja' or 'en-gb', or a browser language tag such as 'pt-BR'.

**Outputs**

- `country_code` (text): For a country or IP address lookup, the two-letter code of the country the greeting is for, e.g. 'GB'. Empty for a language lookup.
- `found` (true/false): True when HelloSalut had a greeting for what was asked. False means 'hello' is the English fallback.
- `hello` (text): The word for hello, e.g. 'Salut' or 'こんにちは'. When HelloSalut has no greeting for what was asked, this is 'Hello'.
- `language_code` (text): For a language lookup, the language HelloSalut matched, e.g. 'fr'. Empty for the other lookups.
- `language_name` (text): For a language lookup, the language's name in English, e.g. 'French'. Empty for the other lookups.
- `matched_by` (text): What the greeting was chosen by: 'language', 'country' or 'ip'.
- `query` (text): What was looked up, tidied: a language code ('fr'), a country code ('DE') or an IPv4 address.
- `summary` (text): One line with the greeting, e.g. "'Salut' is hello in French".

**Example output**

```json
{
  "country_code": null,
  "found": true,
  "hello": "Salut",
  "language_code": "fr",
  "language_name": "French",
  "matched_by": "language",
  "query": "fr",
  "summary": "'Salut' is hello in French"
}
```
