Localization of Bold Reports® ASP.NET Web Forms Report Viewer

To localize the Bold Reports® ASP.NET Web Forms Report Viewer, refer to the following corresponding culture script files and set the culture name to the locale property of the Report Viewer. Localization renders static text such as tooltips, the parameter block, and dialog text in a specific culture.

* `ej.localetexts.fr-FR.min.js`

Refer to the CDN links for Localization and Culture to get the Localization and Culture scripts for the available culture codes.

  1. Install BoldReports.Global Nuget package in your ASP.NET application.

  2. Refer to the ej.localetexts.fr-FR.min.js script file from the Scripts folder of your application.

    <script src="Scripts/bold-reports/v2.0/localization/l10n/ej.localetexts.fr-FR.min.js"></script>
  3. To render the localized 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>