Graceful lang detection