Search results
Suggest a FeaturePDF

Localization of Bold Reports HTML5 JavaScript Report Viewer

Localization of HTML5 JavaScript 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.fa-IR.min.js`

Refer this CDN links for Localization and Culture to get the Localization and Culture scripts for available Culture Code

  1. Refer the ej.localetexts.fr-FR.min.js from cdn using the following code.

    <script src="https://cdn.boldreports.com/6.3.16/scripts/v2.0/localization/reportviewer/ej.localetexts.fr-FR.min.js"></script>
  2. You can edit and preview the Report Viewer localization using the following.

index.js
$(function () {
                var dataValue = "";
                var apiRequest = new Object({
                    password: "demo",
                    userid: "guest"
                    });

                $.ajax({
                    type: "POST",
                    url: "https://on-premise-demo.boldreports.com/api/get-user-key",
                    data: apiRequest,
                    success: function (data) {
                        dataValue = data.Token;
                        var token = JSON.parse(dataValue);

                        $("#viewer").boldReportViewer(
                            {
                                reportServiceUrl: "https://on-premise-demo.boldreports.com/ReportService/api/Viewer",
                                serviceAuthorizationToken: token.token_type + " " + token.access_token,
                                reportPath: '/Sample Reports/Sales Order Detail',
                                //Render Report Viewer in French locale
                                locale: "fr-FR"
                            });
                    }
                });
            });