Forum Discussion
Can we traslate oAuth Prompt Text and Title to preferred language
When can we expect an update. We are working on this feature and currently its in blocked state. It will be good if you can update whether it is possible to do language translation for oauth prompt
- Nivedipa-MSFTSep 06, 2022
Microsoft
Lakshmi_145 - We got a confirmation from engineering team saying that
You have to do additional changes, just changing the language won't work. You need to update the bot to
a. read the language of the user from the installation event
b. create the sign in card with the fields in the right language based on the user locale
Then you should change the language in Teams, the bot will get the new language during install. If a and b are implemented the card will be sent in the right language back
Thanks,
Nivedipa
----------------------------------------------------------------------------------
If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.
- Lakshmi_145Aug 25, 2022Iron Contributor
We have tried in Teams app by changing the app language to Dutch and then gave signin prompt. Still its taking English resource string as Title and text. I have attached the screen shot of Sign in prompt
- Nivedipa-MSFTAug 25, 2022
Microsoft
Lakshmi_145 - The language info from Teams client of the user will be included in the response in the 1:1 messages from user to bot. - Lakshmi_145Aug 18, 2022Iron Contributor
Is there any update on this , will it be possible to do translation for oauth prompt
- Lakshmi_145Aug 11, 2022Iron Contributor
I have tried , its coming as Dutch , we have selected the user preferred language as Dutch and my local system language is English.
Please find the attached screen shot
- Nivedipa-MSFTAug 11, 2022
Microsoft
Lakshmi_145 - Could you please check which culture is set before calling the OAuth Prompt.
Try with below code:
Console.WriteLine(System.Globalization.CultureInfo.CurrentCulture.ToString()); - Lakshmi_145Aug 10, 2022Iron Contributor
Culture is set at the initialization of app itself and we are not getting any events while setting the culture.
Oauth prompt is raised when we call the below method,
public override Task<DialogTurnResult> BeginDialogAsync(DialogContext dc, object options = null, CancellationToken cancellationToken = default);
It will directly prompt the oauth prompt in UI . We have tried setting the culture just before this prompt , but still title and text is displayed in local system language
- Nivedipa-MSFTAug 10, 2022
Microsoft
Lakshmi_145 - Are you getting any event while setting the culture?