Language Detection spoke

  • Release version: Xanadu
  • Updated January 22, 2025
  • 1 minute to read
  • ServiceNow Language Detection Service spoke provides a single subflow and action to detect the language of the given text using the ServiceNow language detection service.

    The ServiceNow Language Detection Service spoke is an in-house language detection service offered by the ServiceNow platform.

    The ServiceNow Language Detection Service spoke plugin (com.glide.language_detection_spoke) is available with the activation of Dynamic Translation plugin (com.glide.dynamic_translation).

    This spoke creates an entry named ServiceNow in the Translator Configurations (sn_dt_translator_configuration) table. By default, this entry is active and marked as default for detection. You can opt to configure your own language detection service.

    Subscription

    This spoke requires any ServiceNow subscription that is Professional or above, and includes Dynamic Translation.

    Supported versions

    API versions v3 and v4.

    Spoke subflow

    The spoke provides the subflow in the Published state to integrate with the ServiceNow language detection service.
    Table 1. Spoke subflow
    Subflow Description
    Inputs
    Detect Language [detect_language_v3] or [detect_language_v4] Detects the languages of texts using ServiceNow Language Detection Service.

    The v4 flows for Dynamic Translation are supported from the Xanadu Patch 3 release. For more information, see Migrate customized Translator Configurations to v4 flows.

    Spoke action

    The spoke provides the action in the Published state to integrate with the ServiceNow language detection service.
    Table 2. Spoke action
    Subflow Description
    Inputs
    Detect Language [detect_language_v3] or [detect_language_v4] Detects the languages of texts using ServiceNow Language Detection Service.

    The v4 flows for Dynamic Translation are supported from the Xanadu Patch 3 release. For more information, see Migrate customized Translator Configurations to v4 flows.

    The ServiceNow Language Detection service uses the following Dynamic Translation APIs to detect the language of the input texts:
    • getDetectedLanguage: Provides text to identify the languages.
    • getDetectedLanguages: Provides texts to identify the languages.
    For more information, see DynamicTranslation API.