Localizing the Viewer
Our sample projects and report templates can help you learn the basics of working with our products.The viewer interface — toolbar tooltips, menus, dialogs — can be shown in any language.
Selecting the language. In the initialization action, set the
Selecting the language. In the initialization action, set the
Localization option to the path of the desired localization file:public IActionResult InitViewer()
{
var requestParams = StiAngularViewer.GetRequestParams(this);
var options = new StiAngularViewerOptions();
options.Actions.GetReport = "GetReport";
options.Localization = StiAngularHelper.MapPath(this, "Localization/de.xml");
return StiAngularViewer.ViewerDataResult(requestParams, options);
}Stimulsoft ships localization files for many languages, and the .xml files can be edited or created to fit your own wording. Replace de.xml with the file for the language you need — the whole viewer interface will switch accordingly, while the Angular component stays unchanged.