language-detector

n8n community node to detect and convert language codes between ISO2, ISO3, English, Turkish, native language names and all world country names. Supports 85+ languages and 240+ countries.

Package Information

Released: 3 mo ago
Downloads: 11 weekly / 59 monthly
Latest Version: 1.2.1

Documentation

n8n-nodes-language-detector

An n8n community node that detects and converts language codes between ISO2, ISO3, English, Turkish, native language names and all world country names.

Features

  • ISO2 (tr, ru, en...) → converts to all formats
  • ISO3 (TUR, RUS, ENG...) → converts to all formats
  • English language name (Turkish, Russian...) → converts to all formats
  • Turkish language name (Türkçe, Rusça...) → converts to all formats
  • Native name (Türkçe, Русский...) → converts to all formats
  • Country names TR/EN (Türkiye, Rusya, Turkey, Russia...) → maps to primary language
  • Country ISO codes (US, GB, CN, TR, RU...) → maps to primary language
  • 240+ countries/territories supported
  • RTL language detection (Arabic, Hebrew, Persian...)
  • 85+ languages supported

Output Fields

Field Example (Ukraine)
lang_country_iso2 UA
lang_iso2 uk
lang_iso3 UKR
lang_name_tr Ukraynaca
lang_name_en Ukrainian
lang_name_native Українська
lang_direction ltr
lang_found true

Note: lang_iso2 = ISO 639-1 language code (lowercase). lang_country_iso2 = ISO 3166-1 country code (uppercase).

Supported Input Examples

"TR" / "RU"           → Turkish / Russian (country or language code)
"Rusça" / "Türkçe"    → language names (TR)
"Russian" / "Turkish" → language names (EN)
"Rusya" / "Türkiye"   → country names (TR)
"Russia" / "Turkey"   → country names (EN)
"US" / "GB" / "CN"    → English / English / Chinese
"Almanya" / "Germany" → German
"Suudi Arabistan"     → Arabic

Installation

Docker

docker exec -it n8n sh
cd /home/node/.n8n/nodes
npm install n8n-nodes-language-detector
exit
docker restart n8n

Usage

  1. Add Language Detector node in n8n
  2. Set Input Field to chatInput (or your field name)
  3. Output fields use prefix lang by default

License

MIT

Discussion