add an extra option `class` in case the records list is empty and the
translate won't work