How to translate Formular data in Power Apps with Microsoft translation services using Power Fx.
Power Fx is a low-code programming language that is based on Excel formulas and can be used to create logic and expressions in Power Apps. You can use Power Fx to call the Microsoft Translator connector, which is a prebuilt AI service that can translate text, speech, and detect languages.
?
To use the Microsoft Translator connector in Power Apps, you need to add it as a data source in your app. Then, you can use the following functions to perform different tasks:
?
MicrosoftTranslator.Translate(text, to, from, category)
MicrosoftTranslator.TextToSpeech(text, language, gender)
MicrosoftTranslator.Detect(text)
MicrosoftTranslator.Languages()
MicrosoftTranslator.SpeechLanguages()
For example, you can use the following steps to create a simple app that can translate text input, speak the translated text, and detect the source language:
领英推荐
?
MicrosoftTranslator.Languages()
MicrosoftTranslator.Translate(TextInput1.Text, Dropdown1.Selected.Value)
MicrosoftTranslator.TextToSpeech(Label1.Text, Dropdown1.Selected.Value)
MicrosoftTranslator.Detect(TextInput1.Text).Name
Links
You can find more information and examples on how to translate Formular data in Power Apps with Microsoft translation services using Power Fx in the following web pages:
Formular Reference: https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/formula-reference
Prebuilt text translation: https://docs.microsoft.com/en-us/ai-builder/prebuilt-text-translation
Translate with Microsoft Translator: https://docs.microsoft.com/en-us/connectors/microsofttranslator/#translate