Get the language for the current environment (node or browser)