Search results

Localization

You can localize the Report Viewer static text and tooltip. 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`
* `ej.culture.fr-FR.min.js`
  1. Refer to the ej.localetexts.fr-FR.min.js script file from the CDN link using the following code.

    <script src="http://cdn.syncfusion.com/4.1.0.25/js/l10n/ej.localetexts.fr-FR.min.js"></script>
  2. Refer to the ej.localetexts.fr-FR.min.js script file from the CDN link using the following code.

        <script src="http://cdn.syncfusion.com/js/assets/i18n/ej.culture.fr-FR.min.js"></script>
  3. To render the localization Report Viewer, use the following code snippet.

    • The following code example illustrates how to localize Report Viewer in the index page.
        <sf-report-viewer id="viewer" report-service-url="/api/ReportViewer" locale="fr-FR"></sf-report-viewer>
    • The following code example illustrates how to localize Report Viewer in the layout page.
        <!DOCTYPE html>
        <html>
        <head>
            <meta charset="utf-8" />
            <meta name="viewport" content="width=device-width, initial-scale=1.0" />
            <title>Render Report Viewer in French localization</title>
            <link href="https://cdn.syncfusion.com/4.1.0.25/js/reports/material/ej.reports.all.min.css"  rel="stylesheet" />
            <script src="https://cdn.syncfusion.com/js/assets/external/jquery-1.10.2.min.js" type="text/javascript"></script>
            <script src="https://cdn.syncfusion.com/4.1.0.25/js/reports/common/ej.reporting.common.min.js"></script>
            <script src="https://cdn.syncfusion.com/4.1.0.25/js/reports/common/ej.reporting.widgets.min.js"></script>
            <script src="https://cdn.syncfusion.com/4.1.0.25/js/reports/ej.report-viewer.min.js"></script>
            <script src="https://cdn.syncfusion.com/4.1.0.25/js/l10n/ej.localetexts.fr-FR.min.js"></script>
            <script src="https://cdn.syncfusion.com/js/assets/i18n/ej.culture.fr-FR.min.js"></script>
        </head>
        <body style="height:100%;width:100%;padding:0;">
            <div class="container body-content" style="height:100%;width:100%;">
                @RenderBody()
            </div>
            @RenderSection("scripts", required: false)
        </body>
        </html>