title: JavaScript error using bootstrap-table
body: <p>I'm trying to use bootstrap-table with MVC. I have the following files in scripts and content:</p>
  
  <pre><code>bootstrap-table.js
  bootstrap-table.min.js
  bootstrap-table-locale-all.js
  bootstrap-table-locale-all.min.js
  
  bootstrap-table.css
  bootstrap-table.min.css
  </code></pre>
  
  <p>I'm then using the following in the bundleconfig.cs file:</p>
  
  <pre><code>        bundles.Add(new ScriptBundle("~/bundles/bootstraptable").Include(
                    "~/Scripts/bootstrap-table*"));
  
          bundles.Add(new StyleBundle("~/Content/bootstraptable").Include(
                    "~/Content/bootstrap-table*"));
  </code></pre>
  
  <p>and these in the "_Layout.cshtml" file:</p>
  
  <pre><code>    @Styles.Render("~/Content/bootstraptable")
      @Scripts.Render("~/bundles/bootstraptable")
  </code></pre>
  
  <p>I also have jQuery and Bootstrap included (and working), so I don't think it's a dependency issue.</p>
  
  <p>When I run the project (before I even try doing anything with a table), I get:</p>
  
  <pre><code>Unable to get property 'locales' of undefined or null reference
  </code></pre>
  
  <p>There's no NuGet package for this, so I had to add the files manually, so perhaps I missed something. But according to the website (<a href="http://bootstrap-table.wenzhixin.net.cn/getting-started/" rel="nofollow noreferrer">http://bootstrap-table.wenzhixin.net.cn/getting-started/</a>), it would seem I have what I need.</p>
  
  <p>Anyone had this issue or have any idea what I'm doing wrong?</p>
  
  <p>Thanks.</p>