How about:

```js
if (options.default_lang && listSupportedLang.indexOf(options.default_lang) === -1) {
  throw new Error("An unknown default_lang was passed. Please check your config or see the README for more details.")
}
default_locale = localeFrom(options.default_lang || "en-US")
```