Localization of Bold Reports® ASP.NET Core Report Viewer Classic
To localize the Bold Reports® ASP.NET Core Report Viewer Classic, refer to the culture script files for the culture you need and set the culture name in the locale property of the Report Viewer Classic. Localization shows static text such as tooltips, the parameter block, and dialog text in a specific culture. For the French culture, refer to the following script files.
* `ej.localetexts.fr-FR.min.js`
* `ej.culture.fr-FR.min.js`-
Refer to the
ej.localetexts.fr-FR.min.jsscript file from the CDN link using the following code:<script src="https://cdn.boldreports.com/15.1.10/scripts/l10n/ej.localetexts.fr-FR.min.js"></script> -
Refer to the
ej.localetexts.fr-FR.min.jsscript file from the CDN link using the following code:<script src="https://cdn.boldreports.com/15.1.10/scripts/i18n/ej.culture.fr-FR.min.js"></script> -
To render the localized Report Viewer Classic, use the following code snippet:
- The following code example illustrates how to localize Report Viewer Classic in the index page.
<bold-report-viewer id="viewer" report-service-url="/api/ReportViewer" locale="fr-FR"></bold-report-viewer>- The following code example illustrates how to localize Report Viewer Classic 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.boldreports.com/15.1.10/content/material/bold.reports.all.min.css" rel="stylesheet" /> <script src="https://cdn.boldreports.com/external/jquery-1.10.2.min.js" type="text/javascript"></script> <script src="https://cdn.boldreports.com/15.1.10/scripts/common/bold.reports.common.min.js"></script> <script src="https://cdn.boldreports.com/15.1.10/scripts/common/bold.reports.widgets.min.js"></script> <script src="https://cdn.boldreports.com/15.1.10/scripts/bold.report-viewer.min.js"></script> <script src="https://cdn.boldreports.com/15.1.10/scripts/l10n/ej.localetexts.fr-FR.min.js"></script> <script src="https://cdn.boldreports.com/15.1.10/scripts/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>