You can simplify this to just
```javascript
return options.mappings[lang] || lang;
```