Support switching locale via environment variable