{"id":652,"date":"2024-09-10T17:25:06","date_gmt":"2024-09-10T07:25:06","guid":{"rendered":"https:\/\/www.cloudproinc.com.au\/?p=652"},"modified":"2024-09-10T17:25:09","modified_gmt":"2024-09-10T07:25:09","slug":"how-to-translate-text-using-azure-ai-translator-and-net","status":"publish","type":"post","link":"https:\/\/cloudproinc.com.au\/index.php\/2024\/09\/10\/how-to-translate-text-using-azure-ai-translator-and-net\/","title":{"rendered":"How to Translate Text Using Azure AI Translator and .NET"},"content":{"rendered":"\n<p>Following our previous post about Azure AI Translator, this post will show how to translate text between a source and target language using C#.<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-about-azure-ai-translator\">About Azure AI Translator<\/h2>\n\n\n\n<p>Microsoft Azure AI Translator offers translation services like language detection and translation for over 90 languages using a single API endpoint.<\/p>\n\n\n\n<p>The process to use Azure AI Translator starts with the provisioning of an Azure AI Service (Multi-service or Translator) and using an SDK or Azure REST API to use the service.<\/p>\n\n\n\n<p>Azure AI Translator offers two core services: Language detection and Language translations. To use the detection service, we need to send a text in a key-value pair format with the language that we would like to detect.<\/p>\n\n\n\n<p>The translation service uses two parameters, From and To, that indicate the source (From) and target (To) languages. We can also count the number of characters in a translated sentence using built-in functions that come with the API.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-how-to-translate-text-using-azure-ai-translator-and-net\">How to Translate Text Using Azure AI Translator and .NET<\/h2>\n\n\n\n<p>The following C# program uses the Azure AI Translator REST API endpoint to translate text (Source to Target). To get started, create a C# project and install the Translation <a href=\"https:\/\/www.nuget.org\/packages\/Azure.AI.Translation.Text\/\" target=\"_blank\" rel=\"noreferrer noopener\">library<\/a>.<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-3de27c31fdbf325762f9c06e75f8757e\"><code>dotnet add package Azure.AI.Translation.Text --version 1.0.0-beta.1<\/code><\/pre>\n\n\n\n<p>In your .NET project, create a<code> <strong>appsettings.json<\/strong><\/code> file with the details of your access key and region.<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-d0cda3200434505232a400aa544fbba7\"><code>{\n    \"TranslatorKey\": \"ACCESS KEY\",\n    \"TranslatorRegion\": \"AZURE REGION\"\n}\n<\/code><\/pre>\n\n\n\n<p>In your <code>Programs.cs<\/code> file, add the following code.<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background has-link-color wp-elements-e99345ca0ca3b063d5e193c62ffad964\"><code>using System;\nusing System.IO;\nusing System.Text;\nusing System.Collections.Generic;\nusing Microsoft.Extensions.Configuration;\nusing System.Threading.Tasks;\nusing Azure;\nusing Azure.AI.Translation.Text;\n\nnamespace translate_text\n{\n    \/\/\/ &lt;summary>\n    \/\/\/ Main program class for text translation.\n    \/\/\/ &lt;\/summary>\n    class Program\n    {\n        \/\/\/ &lt;summary>\n        \/\/\/ Main entry point for the application.\n        \/\/\/ &lt;\/summary>\n        \/\/\/ &lt;param name=\"args\">Command-line arguments.&lt;\/param>\n        static async Task Main(string&#91;] args)\n        {\n            try\n            {\n                \/\/ Set console encoding to Unicode\n                Console.InputEncoding = Encoding.Unicode;\n                Console.OutputEncoding = Encoding.Unicode;\n\n                \/\/ Load configuration from appsettings.json\n                IConfiguration configuration = new ConfigurationBuilder()\n                    .AddJsonFile(\"appsettings.json\")\n                    .Build();\n                string translatorRegion = configuration&#91;\"TranslatorRegion\"];\n                string translatorKey = configuration&#91;\"TranslatorKey\"];\n\n                \/\/ Create translation client\n                AzureKeyCredential credential = new(translatorKey);\n                TextTranslationClient client = new(credential, translatorRegion);\n\n                \/\/ Fetch supported languages\n                var languagesResponse = await client.GetLanguagesAsync(scope: \"translation\");\n                var languages = languagesResponse.Value;\n                Console.WriteLine($\"{languages.Translation.Count} languages available.\");\n                Console.WriteLine(\"Enter a target language code for translation (e.g., 'EN'):\");\n\n                \/\/ Prompt user for target language code\n                string targetLanguage;\n                while (true)\n                {\n                    targetLanguage = Console.ReadLine();\n                    if (languages.Translation.ContainsKey(targetLanguage))\n                        break;\n                    Console.WriteLine($\"{targetLanguage} is not a supported language.\");\n                }\n\n                \/\/ Continuously prompt user for text to translate\n                string inputText;\n                while (true)\n                {\n                    Console.WriteLine(\"Enter text to translate ('quit' to exit):\");\n                    inputText = Console.ReadLine();\n                    if (inputText.ToLower() == \"quit\")\n                        break;\n\n                    \/\/ Translate the entered text\n                    var translationResponse = await client.TranslateAsync(targetLanguage, inputText);\n                    var translation = translationResponse.Value&#91;0];\n                    string sourceLanguage = translation?.DetectedLanguage?.Language;\n                    Console.WriteLine($\"'{inputText}' translated from {sourceLanguage.ToUpper()} to {translation?.Translations&#91;0].To.ToUpper()} as '{translation?.Translations&#91;0]?.Text}'.\");\n                }\n            }\n            catch (Exception ex)\n            {\n                \/\/ Handle exceptions\n                Console.WriteLine(ex.Message);\n            }\n        }\n    }\n}\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-related-articles\">Related Articles<\/h2>\n\n\n\n<ul class=\"wp-block-yoast-seo-related-links yoast-seo-related-links\">\n<li><a href=\"https:\/\/www.cloudproinc.com.au\/index.php\/2024\/09\/09\/setting-up-azure-ai-translator-with-rest-api-step-by-step-guide\/\">Setting Up Azure AI Translator with REST API: Step-by-Step Guide<\/a><\/li>\n\n\n\n<li><a href=\"null\">Reading Handwriting with Azure AI Vision and .NET C#<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.cloudproinc.com.au\/index.php\/2024\/09\/06\/how-to-create-an-azure-ai-language-account-using-rest-api\/\">How to Create an Azure AI Language Account Using REST API<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.cloudproinc.com.au\/index.php\/2024\/09\/08\/build-a-conversational-language-bot-with-azure-ai-language\/\">Build a Conversational Language Bot with Azure AI Language<\/a><\/li>\n\n\n\n<li><a href=\"null\">Five Ways to Secure Your Microsoft 365 Tenant: Tips to Keep Your Data Safe<\/a><\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Following our previous post about Azure AI Translator, this post will show how to translate text between a source and target language using C#.<\/p>\n","protected":false},"author":1,"featured_media":653,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_yoast_wpseo_focuskw":"How to Translate Text Using Azure AI Translator and .NET","_yoast_wpseo_title":"","_yoast_wpseo_metadesc":"Find out how to leverage Azure AI Translator and .NET to easily translate text. Get started with language detection and translation in C#.","_yoast_wpseo_opengraph-title":"","_yoast_wpseo_opengraph-description":"","_yoast_wpseo_twitter-title":"","_yoast_wpseo_twitter-description":"","_et_pb_use_builder":"off","_et_pb_old_content":"","_et_gb_content_width":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[27,24,48,13],"tags":[],"class_list":["post-652","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-net","category-ai","category-azure-ai-translator","category-blog"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.3 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Translate Text Using Azure AI Translator and .NET - CPI Consulting<\/title>\n<meta name=\"description\" content=\"Find out how to leverage Azure AI Translator and .NET to easily translate text. Get started with language detection and translation in C#.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.cloudproinc.com.au\/index.php\/2024\/09\/10\/how-to-translate-text-using-azure-ai-translator-and-net\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Translate Text Using Azure AI Translator and .NET\" \/>\n<meta property=\"og:description\" content=\"Find out how to leverage Azure AI Translator and .NET to easily translate text. Get started with language detection and translation in C#.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.cloudproinc.com.au\/index.php\/2024\/09\/10\/how-to-translate-text-using-azure-ai-translator-and-net\/\" \/>\n<meta property=\"og:site_name\" content=\"CPI Consulting\" \/>\n<meta property=\"article:published_time\" content=\"2024-09-10T07:25:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-09-10T07:25:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cloudproinc.com.au\/wp-content\/uploads\/2024\/09\/Translate-Text-With-Azure-AI-Translator.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"1024\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"CPI Staff\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"CPI Staff\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/index.php\\\/2024\\\/09\\\/10\\\/how-to-translate-text-using-azure-ai-translator-and-net\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/index.php\\\/2024\\\/09\\\/10\\\/how-to-translate-text-using-azure-ai-translator-and-net\\\/\"},\"author\":{\"name\":\"CPI Staff\",\"@id\":\"https:\\\/\\\/cloudproinc.com.au\\\/#\\\/schema\\\/person\\\/192eeeb0ce91062126ce3822ae88fe6e\"},\"headline\":\"How to Translate Text Using Azure AI Translator and .NET\",\"datePublished\":\"2024-09-10T07:25:06+00:00\",\"dateModified\":\"2024-09-10T07:25:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/index.php\\\/2024\\\/09\\\/10\\\/how-to-translate-text-using-azure-ai-translator-and-net\\\/\"},\"wordCount\":281,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/cloudproinc.com.au\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/index.php\\\/2024\\\/09\\\/10\\\/how-to-translate-text-using-azure-ai-translator-and-net\\\/#primaryimage\"},\"thumbnailUrl\":\"\\\/wp-content\\\/uploads\\\/2024\\\/09\\\/Translate-Text-With-Azure-AI-Translator.webp\",\"articleSection\":[\".NET\",\"AI\",\"Azure AI Translator\",\"Blog\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.cloudproinc.com.au\\\/index.php\\\/2024\\\/09\\\/10\\\/how-to-translate-text-using-azure-ai-translator-and-net\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/index.php\\\/2024\\\/09\\\/10\\\/how-to-translate-text-using-azure-ai-translator-and-net\\\/\",\"url\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/index.php\\\/2024\\\/09\\\/10\\\/how-to-translate-text-using-azure-ai-translator-and-net\\\/\",\"name\":\"How to Translate Text Using Azure AI Translator and .NET - CPI Consulting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/cloudproinc.com.au\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/index.php\\\/2024\\\/09\\\/10\\\/how-to-translate-text-using-azure-ai-translator-and-net\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/index.php\\\/2024\\\/09\\\/10\\\/how-to-translate-text-using-azure-ai-translator-and-net\\\/#primaryimage\"},\"thumbnailUrl\":\"\\\/wp-content\\\/uploads\\\/2024\\\/09\\\/Translate-Text-With-Azure-AI-Translator.webp\",\"datePublished\":\"2024-09-10T07:25:06+00:00\",\"dateModified\":\"2024-09-10T07:25:09+00:00\",\"description\":\"Find out how to leverage Azure AI Translator and .NET to easily translate text. Get started with language detection and translation in C#.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/index.php\\\/2024\\\/09\\\/10\\\/how-to-translate-text-using-azure-ai-translator-and-net\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.cloudproinc.com.au\\\/index.php\\\/2024\\\/09\\\/10\\\/how-to-translate-text-using-azure-ai-translator-and-net\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/index.php\\\/2024\\\/09\\\/10\\\/how-to-translate-text-using-azure-ai-translator-and-net\\\/#primaryimage\",\"url\":\"\\\/wp-content\\\/uploads\\\/2024\\\/09\\\/Translate-Text-With-Azure-AI-Translator.webp\",\"contentUrl\":\"\\\/wp-content\\\/uploads\\\/2024\\\/09\\\/Translate-Text-With-Azure-AI-Translator.webp\",\"width\":1024,\"height\":1024},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/index.php\\\/2024\\\/09\\\/10\\\/how-to-translate-text-using-azure-ai-translator-and-net\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Translate Text Using Azure AI Translator and .NET\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/cloudproinc.com.au\\\/#website\",\"url\":\"https:\\\/\\\/cloudproinc.com.au\\\/\",\"name\":\"Cloud Pro Inc - CPI Consulting Pty Ltd\",\"description\":\"Cloud, AI &amp; Cybersecurity Consulting | Melbourne\",\"publisher\":{\"@id\":\"https:\\\/\\\/cloudproinc.com.au\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/cloudproinc.com.au\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/cloudproinc.com.au\\\/#organization\",\"name\":\"Cloud Pro Inc - Cloud Pro Inc - CPI Consulting Pty Ltd\",\"url\":\"https:\\\/\\\/cloudproinc.com.au\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/cloudproinc.com.au\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"\\\/wp-content\\\/uploads\\\/2022\\\/01\\\/favfinalfile.png\",\"contentUrl\":\"\\\/wp-content\\\/uploads\\\/2022\\\/01\\\/favfinalfile.png\",\"width\":500,\"height\":500,\"caption\":\"Cloud Pro Inc - Cloud Pro Inc - CPI Consulting Pty Ltd\"},\"image\":{\"@id\":\"https:\\\/\\\/cloudproinc.com.au\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/cloudproinc.com.au\\\/#\\\/schema\\\/person\\\/192eeeb0ce91062126ce3822ae88fe6e\",\"name\":\"CPI Staff\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2d96eeb53b791d92c8c50dd667e3beec92c93253bb6ff21c02cfa8ca73665c70?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2d96eeb53b791d92c8c50dd667e3beec92c93253bb6ff21c02cfa8ca73665c70?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2d96eeb53b791d92c8c50dd667e3beec92c93253bb6ff21c02cfa8ca73665c70?s=96&d=mm&r=g\",\"caption\":\"CPI Staff\"},\"sameAs\":[\"http:\\\/\\\/www.cloudproinc.com.au\"],\"url\":\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/author\\\/cpiadmin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Translate Text Using Azure AI Translator and .NET - CPI Consulting","description":"Find out how to leverage Azure AI Translator and .NET to easily translate text. Get started with language detection and translation in C#.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.cloudproinc.com.au\/index.php\/2024\/09\/10\/how-to-translate-text-using-azure-ai-translator-and-net\/","og_locale":"en_US","og_type":"article","og_title":"How to Translate Text Using Azure AI Translator and .NET","og_description":"Find out how to leverage Azure AI Translator and .NET to easily translate text. Get started with language detection and translation in C#.","og_url":"https:\/\/www.cloudproinc.com.au\/index.php\/2024\/09\/10\/how-to-translate-text-using-azure-ai-translator-and-net\/","og_site_name":"CPI Consulting","article_published_time":"2024-09-10T07:25:06+00:00","article_modified_time":"2024-09-10T07:25:09+00:00","og_image":[{"width":1024,"height":1024,"url":"https:\/\/cloudproinc.com.au\/wp-content\/uploads\/2024\/09\/Translate-Text-With-Azure-AI-Translator.webp","type":"image\/webp"}],"author":"CPI Staff","twitter_card":"summary_large_image","twitter_misc":{"Written by":"CPI Staff","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.cloudproinc.com.au\/index.php\/2024\/09\/10\/how-to-translate-text-using-azure-ai-translator-and-net\/#article","isPartOf":{"@id":"https:\/\/www.cloudproinc.com.au\/index.php\/2024\/09\/10\/how-to-translate-text-using-azure-ai-translator-and-net\/"},"author":{"name":"CPI Staff","@id":"https:\/\/cloudproinc.com.au\/#\/schema\/person\/192eeeb0ce91062126ce3822ae88fe6e"},"headline":"How to Translate Text Using Azure AI Translator and .NET","datePublished":"2024-09-10T07:25:06+00:00","dateModified":"2024-09-10T07:25:09+00:00","mainEntityOfPage":{"@id":"https:\/\/www.cloudproinc.com.au\/index.php\/2024\/09\/10\/how-to-translate-text-using-azure-ai-translator-and-net\/"},"wordCount":281,"commentCount":0,"publisher":{"@id":"https:\/\/cloudproinc.com.au\/#organization"},"image":{"@id":"https:\/\/www.cloudproinc.com.au\/index.php\/2024\/09\/10\/how-to-translate-text-using-azure-ai-translator-and-net\/#primaryimage"},"thumbnailUrl":"\/wp-content\/uploads\/2024\/09\/Translate-Text-With-Azure-AI-Translator.webp","articleSection":[".NET","AI","Azure AI Translator","Blog"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.cloudproinc.com.au\/index.php\/2024\/09\/10\/how-to-translate-text-using-azure-ai-translator-and-net\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.cloudproinc.com.au\/index.php\/2024\/09\/10\/how-to-translate-text-using-azure-ai-translator-and-net\/","url":"https:\/\/www.cloudproinc.com.au\/index.php\/2024\/09\/10\/how-to-translate-text-using-azure-ai-translator-and-net\/","name":"How to Translate Text Using Azure AI Translator and .NET - CPI Consulting","isPartOf":{"@id":"https:\/\/cloudproinc.com.au\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.cloudproinc.com.au\/index.php\/2024\/09\/10\/how-to-translate-text-using-azure-ai-translator-and-net\/#primaryimage"},"image":{"@id":"https:\/\/www.cloudproinc.com.au\/index.php\/2024\/09\/10\/how-to-translate-text-using-azure-ai-translator-and-net\/#primaryimage"},"thumbnailUrl":"\/wp-content\/uploads\/2024\/09\/Translate-Text-With-Azure-AI-Translator.webp","datePublished":"2024-09-10T07:25:06+00:00","dateModified":"2024-09-10T07:25:09+00:00","description":"Find out how to leverage Azure AI Translator and .NET to easily translate text. Get started with language detection and translation in C#.","breadcrumb":{"@id":"https:\/\/www.cloudproinc.com.au\/index.php\/2024\/09\/10\/how-to-translate-text-using-azure-ai-translator-and-net\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.cloudproinc.com.au\/index.php\/2024\/09\/10\/how-to-translate-text-using-azure-ai-translator-and-net\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.cloudproinc.com.au\/index.php\/2024\/09\/10\/how-to-translate-text-using-azure-ai-translator-and-net\/#primaryimage","url":"\/wp-content\/uploads\/2024\/09\/Translate-Text-With-Azure-AI-Translator.webp","contentUrl":"\/wp-content\/uploads\/2024\/09\/Translate-Text-With-Azure-AI-Translator.webp","width":1024,"height":1024},{"@type":"BreadcrumbList","@id":"https:\/\/www.cloudproinc.com.au\/index.php\/2024\/09\/10\/how-to-translate-text-using-azure-ai-translator-and-net\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.cloudproinc.com.au\/"},{"@type":"ListItem","position":2,"name":"How to Translate Text Using Azure AI Translator and .NET"}]},{"@type":"WebSite","@id":"https:\/\/cloudproinc.com.au\/#website","url":"https:\/\/cloudproinc.com.au\/","name":"Cloud Pro Inc - CPI Consulting Pty Ltd","description":"Cloud, AI &amp; Cybersecurity Consulting | Melbourne","publisher":{"@id":"https:\/\/cloudproinc.com.au\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cloudproinc.com.au\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/cloudproinc.com.au\/#organization","name":"Cloud Pro Inc - Cloud Pro Inc - CPI Consulting Pty Ltd","url":"https:\/\/cloudproinc.com.au\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cloudproinc.com.au\/#\/schema\/logo\/image\/","url":"\/wp-content\/uploads\/2022\/01\/favfinalfile.png","contentUrl":"\/wp-content\/uploads\/2022\/01\/favfinalfile.png","width":500,"height":500,"caption":"Cloud Pro Inc - Cloud Pro Inc - CPI Consulting Pty Ltd"},"image":{"@id":"https:\/\/cloudproinc.com.au\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/cloudproinc.com.au\/#\/schema\/person\/192eeeb0ce91062126ce3822ae88fe6e","name":"CPI Staff","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/2d96eeb53b791d92c8c50dd667e3beec92c93253bb6ff21c02cfa8ca73665c70?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/2d96eeb53b791d92c8c50dd667e3beec92c93253bb6ff21c02cfa8ca73665c70?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2d96eeb53b791d92c8c50dd667e3beec92c93253bb6ff21c02cfa8ca73665c70?s=96&d=mm&r=g","caption":"CPI Staff"},"sameAs":["http:\/\/www.cloudproinc.com.au"],"url":"https:\/\/cloudproinc.com.au\/index.php\/author\/cpiadmin\/"}]}},"jetpack_featured_media_url":"\/wp-content\/uploads\/2024\/09\/Translate-Text-With-Azure-AI-Translator.webp","jetpack-related-posts":[{"id":631,"url":"https:\/\/cloudproinc.com.au\/index.php\/2024\/09\/09\/setting-up-azure-ai-translator-with-rest-api-step-by-step-guide\/","url_meta":{"origin":652,"position":0},"title":"Setting Up Azure AI Translator with REST API: Step-by-Step Guide","author":"CPI Staff","date":"September 9, 2024","format":false,"excerpt":"This article will show how to create an Azure AI Translator service using the Azure REST API. Microsoft Azure AI Translator offers translation services like language detection and translation for over 90 languages using a single API endpoint. The process to use Azure AI Translator starts with the provisioning of\u2026","rel":"","context":"In &quot;AI&quot;","block_context":{"text":"AI","link":"https:\/\/cloudproinc.com.au\/index.php\/category\/ai\/"},"img":{"alt_text":"","src":"\/wp-content\/uploads\/2024\/09\/create-an-Azure-AI-Translator-service-using-the-Azure-REST-API.webp","width":350,"height":200,"srcset":"\/wp-content\/uploads\/2024\/09\/create-an-Azure-AI-Translator-service-using-the-Azure-REST-API.webp 1x, \/wp-content\/uploads\/2024\/09\/create-an-Azure-AI-Translator-service-using-the-Azure-REST-API.webp 1.5x, \/wp-content\/uploads\/2024\/09\/create-an-Azure-AI-Translator-service-using-the-Azure-REST-API.webp 2x"},"classes":[]},{"id":53111,"url":"https:\/\/cloudproinc.com.au\/index.php\/2025\/02\/19\/add-language-keyboards-to-windows-machines-with-intune\/","url_meta":{"origin":652,"position":1},"title":"Add Language Keyboards to Windows Machines with Intune","author":"CPI Staff","date":"February 19, 2025","format":false,"excerpt":"In this Microsoft Intune blog post, we will demonstrate the process of adding an additional language keyboard to a Windows machine using Microsoft Intune. Estimated reading time: 3 minutes Microsoft Intune is a cloud-based service that provides comprehensive management of devices, applications, and security for organizations. As part of the\u2026","rel":"","context":"In &quot;Blog&quot;","block_context":{"text":"Blog","link":"https:\/\/cloudproinc.com.au\/index.php\/category\/blog\/"},"img":{"alt_text":"","src":"\/wp-content\/uploads\/2024\/07\/Deploy-Azure-OpenAI-GPT-4o-Resource-and-Model-using-Bicep.webp","width":350,"height":200,"srcset":"\/wp-content\/uploads\/2024\/07\/Deploy-Azure-OpenAI-GPT-4o-Resource-and-Model-using-Bicep.webp 1x, \/wp-content\/uploads\/2024\/07\/Deploy-Azure-OpenAI-GPT-4o-Resource-and-Model-using-Bicep.webp 1.5x, \/wp-content\/uploads\/2024\/07\/Deploy-Azure-OpenAI-GPT-4o-Resource-and-Model-using-Bicep.webp 2x"},"classes":[]},{"id":786,"url":"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/14\/auto-generate-azure-bearer-token-with-postman\/","url_meta":{"origin":652,"position":2},"title":"Auto-Generate Azure Bearer Token with Postman","author":"CPI Staff","date":"October 14, 2024","format":false,"excerpt":"In this Postman and Azure REST API, I will show you how to auto-generate a bearer token for each Azure REST API request with Postman. Estimated reading time: 3 minutes Postman API client allows us to develop API requests to many cloud services using an intuitive interface. When it comes\u2026","rel":"","context":"In &quot;Azure&quot;","block_context":{"text":"Azure","link":"https:\/\/cloudproinc.com.au\/index.php\/category\/microsoft-azure\/"},"img":{"alt_text":"","src":"\/wp-content\/uploads\/2024\/09\/Simplifying-Azure-Management-with-GitHub-Copilot-for-Azure.webp","width":350,"height":200,"srcset":"\/wp-content\/uploads\/2024\/09\/Simplifying-Azure-Management-with-GitHub-Copilot-for-Azure.webp 1x, \/wp-content\/uploads\/2024\/09\/Simplifying-Azure-Management-with-GitHub-Copilot-for-Azure.webp 1.5x, \/wp-content\/uploads\/2024\/09\/Simplifying-Azure-Management-with-GitHub-Copilot-for-Azure.webp 2x"},"classes":[]},{"id":614,"url":"https:\/\/cloudproinc.com.au\/index.php\/2024\/09\/06\/how-to-create-an-azure-ai-language-account-using-rest-api\/","url_meta":{"origin":652,"position":3},"title":"How to Create an Azure AI Language Account Using REST API","author":"CPI Staff","date":"September 6, 2024","format":false,"excerpt":"This Azure AI Services article will show how to create an Azure AI Language Account using REST API. Table of contentsOut-of-the-Box FeaturesHow to Create an Azure AI Language Account Using REST APICreate POST RequestRequest BodyRelated Articles Azure AI Language allows us to build applications based on language models that can\u2026","rel":"","context":"In &quot;AI&quot;","block_context":{"text":"AI","link":"https:\/\/cloudproinc.com.au\/index.php\/category\/ai\/"},"img":{"alt_text":"","src":"\/wp-content\/uploads\/2024\/09\/How-to-Create-an-Azure-AI-Language-Account-Using-REST-API.webp","width":350,"height":200,"srcset":"\/wp-content\/uploads\/2024\/09\/How-to-Create-an-Azure-AI-Language-Account-Using-REST-API.webp 1x, \/wp-content\/uploads\/2024\/09\/How-to-Create-an-Azure-AI-Language-Account-Using-REST-API.webp 1.5x, \/wp-content\/uploads\/2024\/09\/How-to-Create-an-Azure-AI-Language-Account-Using-REST-API.webp 2x"},"classes":[]},{"id":780,"url":"https:\/\/cloudproinc.com.au\/index.php\/2024\/10\/10\/creating-a-storage-container-in-azure-using-azure-sdk-for-net\/","url_meta":{"origin":652,"position":4},"title":"Creating a Storage Container in Azure Using Azure SDK for .NET","author":"CPI Staff","date":"October 10, 2024","format":false,"excerpt":"In this\u00a0\u00a0Microsoft Azure\u00a0article, we will create a storage container inside an Azure storage account using Azure SDK for .NET. Estimated reading time: 3 minutes Table of contentsCreating a Storage Container in Azure Using Azure SDK for .NETCreate Storage AccountRetrieve Storage Account Connection String Using PowerShellCreate C# Console ApplicationCreate an Environment\u2026","rel":"","context":"In &quot;.NET&quot;","block_context":{"text":".NET","link":"https:\/\/cloudproinc.com.au\/index.php\/category\/net\/"},"img":{"alt_text":"","src":"\/wp-content\/uploads\/2024\/07\/Reading-Handwriting-with-Azure-AI-Vision-and-.NET-C.webp","width":350,"height":200,"srcset":"\/wp-content\/uploads\/2024\/07\/Reading-Handwriting-with-Azure-AI-Vision-and-.NET-C.webp 1x, \/wp-content\/uploads\/2024\/07\/Reading-Handwriting-with-Azure-AI-Vision-and-.NET-C.webp 1.5x, \/wp-content\/uploads\/2024\/07\/Reading-Handwriting-with-Azure-AI-Vision-and-.NET-C.webp 2x"},"classes":[]},{"id":56794,"url":"https:\/\/cloudproinc.com.au\/index.php\/2025\/11\/16\/flag-protected-text-with-azure-ai-content-safety\/","url_meta":{"origin":652,"position":5},"title":"Flag Protected Text with Azure AI Content Safety","author":"CPI Staff","date":"November 16, 2025","format":false,"excerpt":"Learn how to use Azure AI Content Safety to detect and flag sensitive or protected text in your applications without slowing teams down or over-blocking legitimate content.","rel":"","context":"In &quot;Azure AI Services&quot;","block_context":{"text":"Azure AI Services","link":"https:\/\/cloudproinc.com.au\/index.php\/category\/azure-ai-services\/"},"img":{"alt_text":"","src":"\/wp-content\/uploads\/2025\/11\/flag-protected-text-with-azure-ai-content-safety.png","width":350,"height":200,"srcset":"\/wp-content\/uploads\/2025\/11\/flag-protected-text-with-azure-ai-content-safety.png 1x, \/wp-content\/uploads\/2025\/11\/flag-protected-text-with-azure-ai-content-safety.png 1.5x, \/wp-content\/uploads\/2025\/11\/flag-protected-text-with-azure-ai-content-safety.png 2x, \/wp-content\/uploads\/2025\/11\/flag-protected-text-with-azure-ai-content-safety.png 3x, \/wp-content\/uploads\/2025\/11\/flag-protected-text-with-azure-ai-content-safety.png 4x"},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/posts\/652","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/comments?post=652"}],"version-history":[{"count":1,"href":"https:\/\/cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/posts\/652\/revisions"}],"predecessor-version":[{"id":654,"href":"https:\/\/cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/posts\/652\/revisions\/654"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/media\/653"}],"wp:attachment":[{"href":"https:\/\/cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/media?parent=652"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/categories?post=652"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/tags?post=652"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}