meta info
  • Title: Use Translation For Localization
  • Keywords: localization,, translate, online,, service
  • Description: Learn how to use translation service for localization of Asp.Net Core web apps with XLocalizer.Translate.
  • Author: Ziya Mollamahmut
  • Date: 08-Aug-2020
  • Image:
  • Image-alt: XLocalizer Logo
  • Version: v1.0

Use Translate For Localization

By Ziya Mollamahmut

This nuget is based on the free plan of Systran Translate via RapidAPI.

See GitHub repo


PM > Install-Package XLocalizer.Translate.SystranTranslate
  "XLocalizer.Translate": {
    "RapidApiKey": "...",

Right click on the project name and select Manage User Secrets

Register in startup

services.AddHttpClient<ITranslator, SystranTranslateServiceRapidApi>();

Use with XLocalizer

// Configure XLocalizer to use the translation service 
// and enable online translation
        .AddXLocalizer<LocSource, SystranTranslateServiceRapidApi>(ops =>
            // ...
            ops.AutoTranslate = true;