Search results
Suggest a FeaturePDF

Localization

Localization is the process of customizing the application for a given culture and locale - involving much more than the simple translation of text. In web report designer, localized strings appropriate to each culture are stored in separate files and loaded according to the UI culture setting.

Follow this steps to localize Bold Reports Designer version higher than v5.2.xx

By default report designer display strings in US English(en-US).

To render the static text with specific culture, refer the following corresponding culture script files and set culture name to the locale property of the Report Designer.

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

    <script src="https://cdn.boldreports.com/6.1.34/scripts/v2.0/localization/l10n/ej.localetexts.fr-FR.min.js"></script>
    <script src="https://cdn.boldreports.com/6.1.34/scripts/v2.0/localization/reportdesigner/ej.localetexts.fr-FR.min.js"></script>
    <script src="https://cdn.boldreports.com/6.1.34/scripts/v2.0/localization/reportviewer/ej.localetexts.fr-FR.min.js"></script>
  2. To render the localization Report Designer, use the following code snippet.

    • The following code example illustrates how to set the locale property for Report Designer in the index page.

          <bold-report-designer id="designer" service-url="/api/ReportingAPI" locale="fr-FR"></bold-report-designer>
    • The following code example illustrates how to add Report Designer localization scripts in the layout page.

      <!DOCTYPE html>
      <html>
      <head>
          <meta charset="utf-8" />
          <meta name="viewport" content="width=device-width, initial-scale=1.0" />
          <title>@ViewData["Title"] - Render Report Designer in French localization</title>
      
          <environment include="Development">
               <link href="https://cdn.boldreports.com/6.1.34/content/v2.0/tailwind-light/bold.report-designer.min.css" rel="stylesheet" />
               <link href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.37.0/codemirror.min.css" rel="stylesheet" />
               <link href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.37.0/addon/hint/show-hint.min.css" rel="stylesheet" />
          </environment>
      </head>
      <body style="height:100%;width:100%;padding:0;">
          <environment include="Development">
              <script src="https://cdn.boldreports.com/external/jquery-1.10.2.min.js" type="text/javascript"></script>
              <script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.37.0/codemirror.min.js" type="text/javascript"></script>
              <script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.37.0/addon/hint/show-hint.min.js" type="text/javascript"></script>
              <script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.37.0/addon/hint/sql-hint.min.js" type="text/javascript"></script>
              <script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.37.0/mode/sql/sql.min.js" type="text/javascript"></script>
              <script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.37.0/mode/vb/vb.min.js" type="text/javascript"></script>
              <!-- Report Designer component dependent scripts -->
              <script src="https://cdn.boldreports.com/6.1.34/scripts/v2.0/common/bold.reports.common.min.js"></script>
              <script src="https://cdn.boldreports.com/6.1.34/scripts/v2.0/common/bold.reports.widgets.min.js"></script>
              <!-- Report Viewer and Designer component scripts -->
              <script src="https://cdn.boldreports.com/6.1.34/scripts/v2.0/bold.report-viewer.min.js"></script>
              <script src="https://cdn.boldreports.com/6.1.34/scripts/v2.0/bold.report-designer.min.js"></script>
              <script src="https://cdn.boldreports.com/6.1.34/scripts/v2.0/localization/l10n/ej.localetexts.fr-FR.min.js"></script>
              <script src="https://cdn.boldreports.com/6.1.34/scripts/v2.0/localization/reportdesigner/ej.localetexts.fr-FR.min.js"></script>
              <script src="https://cdn.boldreports.com/6.1.34/scripts/v2.0/localization/reportviewer/ej.localetexts.fr-FR.min.js"></script>
          </environment>
          <div class="container body-content" style="height:100%;width:100%;">
              @RenderBody()
              <bold-script-manager></bold-script-manager>
          </div>
      @RenderSection("Scripts", required: false)
      </body>
      </html>