Multi-lingual models

To allow the same model to be used for multiple languages, intents, entities, and replies require the language and country code to be specified. Since stories and commands refer to the ids of the intents, entities, and replies, they are language-independent.

Example


language_data:
  en_US:
    example_utterances:
      - Help
      - Help me
      - What can I say
      - Available commands
      - List commands
      - List of available commands
      - List of voice commands
      - Voice commands
  es_MX:
    example_utterances:
      - Ayuda
      - Ayúdame
      - Asistencia
      - Qué puedo decir
      - Comandos disponibles
      - Lista de comandos
  fr_FR:
    example_utterances:
      - Aide
      - Aidez-moi
      - Que puis-je dire
      - Commandes disponibles
      - Liste des commandes

Language identifiers

The model uses ISO 693 for the language code and ISO 3166 for the country code. The language code is lowercase, the country code is uppercase, and they are separated by an underscore. For example:

Example Description
en_US United States English
es_MX Mexican Spanish
de_DE German used in Germany
ja_JP Japanese used in Japan