title: Get code from country or zone name to set locale() moment.js
body: <p>I'm using <a href="https://momentjs.com" rel="nofollow noreferrer">moment.js</a> with moment timezone in it.</p>
  <p>I was trying to find how to get code <code>'fr'</code> from zone name <code>'Europe/Paris'</code> all day, but with no luck.</p>
  <p>I read all their docs and couldn't find that function either, so i need help on this one.</p>
  <p>Closest what i found is <a href="https://momentjs.com/timezone/docs/#/using-timezones/getting-country-zones/" rel="nofollow noreferrer">this</a>. I need this function but in reverse, to pass country name and get country code.</p>