Skip to main content

Globalization and Localization

Overview

Globalization is the adaptation of a specific resource to fit the demands of multiple cultures. In other words, globalization is the development of a product that is easily accepted worldwide.

Localization refers to the adjustment of a specific resource or product to fit the demands of one locale. Localizing your materials involves making necessary changes to existing content to ensure that an audience in a targeted locale will understand it.

Translate the content

Translate messages, labels etc. on frontend aplication and backend services

Translate the data

Support traslate data on domain Entity. Allowed translate any datatype for example: images, texts.

Definition of Localizable data:

public class MyEntity : BaseEntity<string>
{
// ...
/// <summary>
/// User localizable name.
/// </summary>
public LocalizedValue<string> Name { get; set; }
// ...
}

Get translated data:

public string GetTranslatedName(MyEntity entity, IRuntimeContext runtimeContext)
{
entity.Name.Translate(runtimeContext.Localization.LanguageCode)
}