As I suggested above, let's make this an exported function called `getCurrentLang()` so we can reuse it.