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
Stimulsoft ships localization files for many languages (German, French, Spanish, Italian and more); the
Client side. Nothing special is required on the client — the same component is used as in the basic integration:
Selecting the language. In the initialization action, set the
Localization option to the path of the desired localization file:public IActionResult InitViewer()
{
var requestParams = StiVueViewer.GetRequestParams(this);
var options = new StiVueViewerOptions();
options.Actions.GetReport = "GetReport";
options.Actions.ViewerEvent = "ViewerEvent";
options.Localization = StiVueHelper.MapPath(this, "Localization/de.xml");
return StiVueViewer.ViewerDataResult(requestParams, options);
}Stimulsoft ships localization files for many languages (German, French, Spanish, Italian and more); the
.xml files can also 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.Client side. Nothing special is required on the client — the same component is used as in the basic integration:
<StimulsoftViewer request-url="/Viewer/{action}" action="InitViewer" height="100vh" />