detect langmap