chooses first available lang if no curLang is set