Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
890 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I can't figure out how to make the bot to change locale to respect direction, or even change direction without locale either will work, but how?
I am talking about webchat!
If you are referring to the directional flow of a language, it support Right-to-Left (RTL), Left-to-Right (LTR), and Bidirectional (BiDi)
For Right-to-Left (RTL):
dir
property to rtl
locale
prop to an RTL language, e.g. ar-EG
and it will automatically set the direction to rtl
For Left-to-Right (LTR):
dir
property to ltr
locale
prop to an LTR language, e.g. en-US
and it will automatically set the direction to ltr
The available properties for dir
are: ltr
, rtl
, and auto
You can check this sample which shows more in depth on how to change locale and direction for RTL languages on Web Chat