autodetect language if not defined in config