Page 1 of 1

Localization in viewer

Posted: Thu Jul 11, 2024 9:22 am
by Alina
Hello!
I have one page with several tabs. Every tab has a report.
First report has a ru localization, others - eng.

Code: Select all

window.Stimulsoft.Base.Localization.StiLocalization.setLocalizationFile("ru.xml");
I wrote this code every time I built a new report in one of the tabs and only once, but the situation is always the same. Tell me how to solve this problem, please?

Re: Localization in viewer

Posted: Thu Jul 11, 2024 1:50 pm
by Max Shamanov
Hello,

Sorry, maybe we did not exactly understand your question. Could you explain your issue in more detail?

Thank you.

Re: Localization in viewer

Posted: Tue Jul 16, 2024 2:50 pm
by Alina
I have page with:
<div>
<!-- here tabs -->
<v-tabs v-model="tabIndex">
<v-tab v-for="(tab, index) in tabs" :key="index" @click="currentTab = tab">
<div>
<span>{{ tab.name }}</span>
<Icon :name-icon="'mdi-close'" @click.native="closeCards(tab.docId)" />
</div>
</v-tab>
</v-tabs>

<v-tabs-items v-model="tabIndex">
<v-tab-item v-for="tab in tabs" :key="tab.docId">
<div :id="tab.docId">
<!-- here view report -->
</div>
</v-tab-item>
</v-tabs-items>
</div>

Every tab has a report. The report is created in <div :id="tab.docId"></div>

Every time you open a new tab, the function for setting options is triggered:
setViewerOptions() {
const options = new window.Stimulsoft.Viewer.StiViewerOptions();
options.height = "95vh"
window.Stimulsoft.Base.Localization.StiLocalization.setLocalizationFile("ru.xml"); // --------------------this string was supposed to set Russian on all tabs but it only works the first time, then the viewer in English
...
}

Re: Localization in viewer

Posted: Tue Jul 16, 2024 9:39 pm
by Lech Kulikowski
Hello,

Please send us a sample project that reproduces the issue for analysis.

Thank you.