Translate query.type in magicbar