title: How to use custom locale in vis.js timeline
body: <p>I am using the vis.js timeline for a project and tried to add a custom locale as explained in the <a href="http://visjs.org/docs/timeline/#Localization" rel="nofollow noreferrer">documentation</a>.</p>
  
  <pre><code>var options = {
    locales: {
      // create a new locale (text strings should be replaced with localized strings)
      mylocale: {
        current: 'current',
        time: 'time',
      }
    },
  
    // use the new locale
    locale: 'mylocale'
  };
  </code></pre>
  
  <p>Although I'd like to make it work without moment.js I loaded moment.js before vis.js. Here is an <a href="https://jsfiddle.net/e7uodse2/3154/" rel="nofollow noreferrer">example</a> on jsfiddle that I expected to work but it doesn't. Can somebody please explain why it doesn't work as documented or if I missed something important?</p>