Assuming that pagination is represented as a ul>li element in simple HTML, you can easily modify the text inside it like this:
<nav aria-label="Page navigation example">
<ul class="pagination">
<li class="page-item"><a class="page-link" href="#">Previous</a></li>
<li class="page-item"><a class="page-link" href="#">1-10</a></li>
<li class="page-item"><a class="page-link" href="#">11-20</a></li>
<li class="page-item"><a class="page-link" href="#">21-30</a></li>
<li class="page-item"><a class="page-link" href="#">31-40</a></li>
<li class="page-item"><a class="page-link" href="#">41-50</a></li>
<li class="page-item"><a class="page-link" href="#">51-60</a></li>
<li class="page-item"><a class="page-link" href="#">Next</a></li>
</ul>
</nav>