The viewer interface — toolbar tooltips, menus, dialogs — can be shown in any language.

Selecting the language. In the initialization action, set the Localization option to the path of the desired localization file:
public IActionResult InitViewer()
{
    var requestParams = StiReactViewer.GetRequestParams(this);

    var options = new StiReactViewerOptions();
    options.Actions.GetReport = "GetReport";
    options.Actions.ViewerEvent = "ViewerEvent";
    options.Localization = StiReactHelper.MapPath(this, "Localization/de.xml");

    return StiReactViewer.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 requestUrl="/Viewer/{action}" action="InitViewer" height="100vh" />

By using this website, you agree to the use of cookies for analytics and personalized content. Cookies store useful information on your computer to help us improve efficiency and usability. For more information, please read the privacy policy and cookie policy.