<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - help/languages.js is not valid Javascript, breaks browser-based docs"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=123872">123872</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>help/languages.js is not valid Javascript, breaks browser-based docs
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>6.2.0.3 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Documentation
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>jsd.libreoffice@bvac.co.za
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>olivier.hallot@documentfoundation.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>First: thanks for LO, great work.

On a fresh install of LO 6.2.0 on MacOS 10.13.6, I clicked on a Help icon,
which opened a browser at URL
file:///Applications/LibreOffice.app/Contents/Resources/help/index.html
However the displayed page was blank.  Browser console revealed an error in
languages.js: "Unexpected token: var"

Discovered languages.js in above dir was not valid JS; it had "-n" at the start
of each line and no commas between the language ID strings.

The installed languages.js looked like this:
  -n var languagesSet = new Set([
  -n 'en-US'
  -n 'am'
...etc

It clearly was intended to look like this:
  var languagesSet = new Set([
  'en-US',
  'am',
  'ar',
...etc

A quick edit to the second style fixed this and docs in browser worked fine
thereafter.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>