Reporting - How to Use the Microsoft Azure Translator Text API to Localize Your Reports (v20.1)

Reporting Team Blog
29 April 2020

In this post I’ll continue with a v20.1 topic I covered earlier – Reporting - Localization (v20.1). If you’ve not had the chance to read my previous blog post, you may want to review it before you proceed with this post. Alternatively, you can watch our YouTube Report Localization video for the same background info on new Localization-related features.

As the title of this blog posts suggests, I want to briefly explore report translation via Microsoft Azure Translator Text API - and point you to technical resources so you can automatically translate report strings/resources when using the DevExpress Web Report Designer.

Before I get into it, a quick word about Report Localization and why we chose Microsoft Azure Translator Text API. The answer is simple – we have a long-standing business relationship with Microsoft and we like Microsoft’s implementation. Countless other translation services exist, so you can apply our logic and incorporate your own should you wish.

Translating Text within the Web Report Designer

When a custom translation service is registered in the application, our Localization Editor displays a button next to the Language drop-down. The Web Report Designer collects all text strings displayed in the Localization Editor and sends a request to a translation service once a user clicks this button. This action translates all text strings to the selected language simultaneously:

Localization Editor - Translation Button

We’ve created an introductory video tutorial and a sample GitHub project to document implementation details. You can find the complete source code and a detailed technical tutorial in the following repository: How to Use the Microsoft Azure Translator Text API in Report Localization.

You can download the YouTube video script here: How to Use Azure Text Translator API to Localize Reports Video Script .

Hope you enjoy the video.

Your Feedback Counts

We want to hear from you. Share your thoughts below and tell us your thoughts on automated text translation within our WinForms and WPF Report designers.

Showcase Your Apps on DevExpress.com

Highlight your business app and share your development experiences with the DevExpress community. To include your app in our upcoming App Showcase, please forward an application screenshot to clientservices@devexpress.com and tell us which DevExpress products you currently use within your organization.
3 comment(s)
Daniel Rottschäfer
Daniel Rottschäfer
Is it possible to use the Azure Translator Text with the Visual Studio Report Designer?
6 May 2020
Dmitry Tok (DevExpress Support)
Dmitry Tok (DevExpress Support)

Hi Daniel, 

No immediate plans for the Visual Studio Designer but I did note in the blog post that we are looking for feedback for desktop platforms. 

Feedback will drive our future implementation. Thank you

 

6 May 2020
Steve Mitchell (PSI)
Steve

I have implemented an AzureTranslatorProvider that integrates nicely into the model editor localization editor using

TranslatorProvider.RegisterProvider(new AzureTranslatorProvider()) 

and would love to be able to integrate this same/similar provider into the WinForms report localization editor.

13 July 2020

Please login or register to post comments.