aws-samples / aws-samples/aws-lex-web-ui
initialText multilanguage and changing language dynamically without click button in the corners
- Dominant language
- JavaScript
- Stars
- 817
- Forks
- 506
- PR merge metrics
- No merged PRs in 30d
Description
Hello, i have two issues with my bot.
## initialText multilanguage
Exist a way to use different initialText according to the language?
Right now, i set it like:
`"initialText": "Para español selecciona: es_ES, di 'Hola' / For english select: en_US, say 'Hi'",`
Could be something like:
`"initialText": { "es_ES": "Hola!'", "en_US": "Hello!"},`
## changing language dynamically without click button in the corners
Existe a way if a user type in input "es_ES" change the language to Spanish and viceversa with "en_US"?
I monitoring the use of bot, utterances, i see that multiple user type "es_ES" or "en_US" to change the language instead of click the button, so they intent to leave the chat...
Contributor guide
Research direction
The issue identifies two entry points: the corner language controls and the chat input. Start by tracing how those controls select a language and how typed input reaches the bot, then determine whether initialText can vary by locale and whether es_ES or en_US should trigger the same change. Done means both languages show the appropriate greeting and typed language codes switch the bot without a corner-button click.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, javascript
- Domain
- ai, frontend, web-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100