Localization of Bold Reports® ASP.NET Web Forms Report Viewer
Localization of ASP.NET Web Forms Report Viewer allows you to localize the static text such as tooltip, parameter block, and dialog text based on a specific culture. To render the static text with specific culture, refer to the following corresponding culture script files and set culture name to the locale property of the Report Viewer.
* `ej.localetexts.fr-FR.min.js`Refer this CDN links for Localization and Culture to get the Localization and Culture scripts for available Culture Code.
-
Install
BoldReports.GlobalNuget package in your ASP.NET application. -
Refer to this
ej.localetexts.fr-FR.min.jsscript file from theScriptsfolder of your application.<script src="Scripts/bold-reports/v2.0/localization/l10n/ej.localetexts.fr-FR.min.js"></script> -
To render the localization Report Viewer, use the following code snippet in your application.
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server"> <link href="~/content/bold-reports/v2.0/tailwind-light/bold.report-viewer.min.css" rel="stylesheet" /> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script> <script src="~/scripts/bold-reports/v2.0/common/bold.reports.common.min.js"></script> <script src="~/scripts/bold-reports/v2.0/common/bold.reports.widgets.min.js"></script> <script src="~/scripts/bold-reports/v2.0/bold.report-viewer.min.js"></script> <script src="~/scripts/bold-reports/v2.0/localization/l10n/ej.localetexts.fr-FR.min.js"></script> <div style="height: 600px; width: 100%; min-height: 404px;"> <Bold:ReportViewer runat="server" ID="viewer" ReportServiceUrl="/api/ReportViewer" ReportPath="~/Resources/sales-order-detail.rdl" locale="fr-FR"> </Bold:ReportViewer> </div> </asp:Content>