Hi felipe,
Thanks for using Syncfusion products.
You can set the language by using the property “locale” in sample itself. Also if you are using OLAP DB, you need to set the language code for “pt-BR” to the “Locale Identifier” in the connection string. Please find the sample code snippet for you reference below.
Language code set in Sample level:
@Html.EJ().Pivot().PivotClient("PivotClient1").Url("../api/OlapClient").Title("OLAP Browser").Locale("pt-BR") |
Locale Identifier set to connectionString in WebAPIController:
static string connectionString = ConfigurationManager.ConnectionStrings["Adventure Works"].ConnectionString + "locale identifier=1046;";
//
[AcceptVerbs("Post")]
public Dictionary<string, object> Initialize(Dictionary<string, object> jsonResult)
{
OlapDataManager DataManager = null;
DataManager = new OlapDataManager(connectionString);
DataManager.Culture = new System.Globalization.CultureInfo((1046));
DataManager.OverrideDefaultFormatStrings = true;
//
} |
Also, We have provided the detailed information in the online document itself. Please find the online document link below for your reference.
Please let us know if you have any concern.
Regards,
Sastha Prathap S.