Localizing the Viewer
Our sample projects and report templates can help you learn the basics of working with our products.The viewer interface can be localized by loading a Stimulsoft language XML file before it renders.
In Vue.
How it works. The viewer reads its captions from the loaded file, so switching language is a single call.
In Vue.
<script setup lang="ts">
import { Viewer, Stimulsoft } from 'stimulsoft-dashboards-js-vuejs/viewer'
var report = new Stimulsoft.Report.StiReport();
report.loadFile("Dashboards/Dashboard.mrt");
Stimulsoft.Base.Localization.StiLocalization.setLocalizationFile("Localizations/pt.xml");
var options = new Stimulsoft.Viewer.StiViewerOptions();
options.appearance.fullScreenMode = true;
</script>
<template>
<Viewer :report="report" :options="options" />
</template>StiLocalization.setLocalizationFile(path)— load the UI language file (e.g. Portuguese); the viewer captions switch to it.
How it works. The viewer reads its captions from the loaded file, so switching language is a single call.