Skip to content

v2BotLocaleId does not support Lex V2 multi-locale bots IDs #860

@AbdulQayyumaq

Description

@AbdulQayyumaq

v2BotLocaleId in lex-web-ui-loader-config.json does not work correctly with Amazon Lex V2 bots that have multiple locales enabled.

  • Passing an array of locales (e.g. ["en_US","fr_CA","ar_AR"]) fails immediately with a validation error.
  • Passing a single string works only for one locale.
  • Passing a comma-separated string (e.g."en_US","fr_CA","ar_AR") allows initialization but fails at runtime with a Lex V2 validation exception.

This makes it impossible to use multi-locale Lex V2 bots with aws-lex-web-ui.

Actual Behavior

  • Array input → blocked by validation (only use string)

  • Comma-separated string → runtime error:
    ValidationException: Value "en_US","fr_CA","ar_AR" at 'localeId'
    failed to satisfy constraint:
    Member must satisfy regular expression pattern:
    ([a-z]{2}[A-Z]{2}|[a-z]{2}[A-Z]{2}_[0-9]{3})$

  • Chatbot fails to load and eventually times out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions