Search results
PDF

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.

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
  • ej.culture.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/5.4.20/scripts/l10n/reportdesigner/ej.localetexts.fr-FR.min.js"></script>
  2. Refer to the ej.culture.fr-FR.min.js script file from the Scripts folder of your application.

       <script src="https://cdn.boldreports.com/5.4.20/scripts/i18n/ej.culture.fr-FR.min.js"></script>
  3. 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/5.4.20/content/material/bold.reports.all.min.css" rel="stylesheet" />
              <link href="https://cdn.boldreports.com/5.4.20/content/material/bold.reportdesigner.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://cdn.boldreports.com/external/jsrender.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.44.0/mode/vb/vb.min.js" type="text/javascript"></script>
              <script src="https://cdn.boldreports.com/5.4.20/scripts/common/bold.reports.common.min.js"></script>
              <script src="https://cdn.boldreports.com/5.4.20/scripts/common/bold.reports.widgets.min.js"></script>
              <script src="https://cdn.boldreports.com/5.4.20/scripts/common/bold.report-designer-widgets.min.js"></script>
              <!--Chart component script added before the Report Designer and viewer script to render report with chart report item-->
              <script src="https://cdn.boldreports.com/5.4.20/scripts/data-visualization/ej.chart.min.js"></script>
              <script src="https://cdn.boldreports.com/5.4.20/scripts/bold.report-viewer.min.js" type="text/javascript"></script>
              <script src="https://cdn.boldreports.com/5.4.20/scripts/bold.report-designer.min.js" type="text/javascript"></script>
              <script src="https://cdn.boldreports.com/5.4.20/scripts/l10n/reportdesigner/ej.localetexts.fr-FR.min.js"></script>
              <script src="https://cdn.boldreports.com/5.4.20/scripts/i18n/ej.culture.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>