title: Datatables.js - multiple customized languages
body: <p>I'm working with Datatables.js in different human languages. I'm using the language plugins provided by Datatables and they work fine. However, I would like to overwrite a few of the translations with my own translations.</p>
  
  <p>How can I do this in the best way?</p>
  
  <p>Here's my code:</p>
  
  <pre><code>  function getLanguage() {
      var $langMap = {
        en: 'English',
        es: 'Spanish'
      };
      var $lang = $('html').attr('lang');
      return '//cdn.datatables.net/plug-ins/1.10.13/i18n/' + $langMap[$lang] + '.json';
    }
  
    // Build Datatable
    $('#example').DataTable({
      language: {
        url: getLanguage() // works perfectly, but I need to overwrite with a few custom text options
      }
    });
  </code></pre>
  
  <p>Say, I want to owerwrite these language options:</p>
  
  <pre><code>  en: {
      // Overwrite defaults with this string
      "lengthMenu": "Display _MENU_ records per page - custom test",
    },
    es: {
      // Overwrite Spanish defaults with this string
      "lengthMenu": "Mostrar _MENU_ registros - algo muy especial...",
    }
  </code></pre>
  
  <p><a href="https://jsfiddle.net/4ebzccwb/3/" rel="nofollow noreferrer">JsFiddle here</a>.</p>
  
  <p>Ref: <a href="https://datatables.net/examples/basic_init/language.html" rel="nofollow noreferrer">Datatables.js language options</a>.</p>