简体   繁体   中英

How to detect user's language in Microsoft Teams for Microsoft Bot Framework?

I want to get the user's language to use as my default Bot's language from their Microsoft Teams Application both the web and desktop version.

We already tried to do it via os-locale but that didn't work as desired. We also tried to use @microsoft/team-js but it threw a window object is not defined error.

Is there any other way that I can set the bot's language to the user's preferred language in their Microsoft Teams application?

Per the MSTeams team (as of 25 Feb 2019):

Localization based on user culture/locale is not supported in Microsoft Teams Apps. We don't have a timeline to share yet.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM