Localizing the Viewer
Наши примеры проектов и шаблоны отчётов помогут Вам разобраться в основах работы с нашими продуктами.The viewer interface can be shown in different languages by loading a localization file. This example sets a Portuguese localization.
Viewer setup. Configure the viewer, load the report, assign it to the component, and process the requests or events raised by the UI.
Viewer setup. Configure the viewer, load the report, assign it to the component, and process the requests or events raised by the UI.
<script setup lang="ts">
import { Viewer, Stimulsoft } from 'stimulsoft-reports-js-vuejs/viewer';
var report = new Stimulsoft.Report.StiReport();
report.loadFile("Reports/SimpleList.mrt");
var viewerOptions = new Stimulsoft.Viewer.StiViewerOptions();
Stimulsoft.Base.Localization.StiLocalization.setLocalizationFile("Localizations/pt.xml");
</script>
<template>
<Viewer :report="report" :options="viewerOptions" />
</template>StiLocalization.setLocalizationFile loads the language file for the whole Stimulsoft interface. Localization files ship with the product and can be edited or created.