Commit 382066be authored by Matija Obreza's avatar Matija Obreza
Browse files

Fix: Missing pagination i18n

parent 80262411
...@@ -86,12 +86,12 @@ class Pagination extends React.Component<IPagination> { ...@@ -86,12 +86,12 @@ class Pagination extends React.Component<IPagination> {
<nav aria-label="Page navigation"> <nav aria-label="Page navigation">
<ul className="pagination"> <ul className="pagination">
<li className={`page-item ${paged.number === 0 ? "disabled" : ""}`}> <li className={`page-item ${paged.number === 0 ? "disabled" : ""}`}>
<a className="page-link" onClick={ this.toPage } data-page={ 0 } href="#" aria-label={t('pag.first')}> <a className="page-link" onClick={ this.toPage } data-page={ 0 } href="#" aria-label={ t('pag.first') }>
<span aria-hidden="true">&laquo; {t('pag.first')}</span> <span aria-hidden="true">&laquo; {t('pag.first')}</span>
</a> </a>
</li> </li>
<li className={`page-item ${paged.number === 0 ? "disabled" : ""}`}> <li className={`page-item ${paged.number === 0 ? "disabled" : ""}`}>
<a onClick={ this.toPage } data-page={ paged.number - 1 } href="#" className="page-link">&lsaquo; {t('pag.prev')}</a> <a onClick={ this.toPage } data-page={ paged.number - 1 } href="#" className="page-link">&lsaquo; { t('pag.prev') }</a>
</li> </li>
{ this.getPageNumbers().map((page, i) => ( { this.getPageNumbers().map((page, i) => (
<li key={ `page-${page}-${i}` } data-page={ page - 1 } onClick={ this.toPage } aria-current="page" className={`page-item ${paged.number === page - 1 ? "active" : ""}`}> <li key={ `page-${page}-${i}` } data-page={ page - 1 } onClick={ this.toPage } aria-current="page" className={`page-item ${paged.number === page - 1 ? "active" : ""}`}>
...@@ -106,7 +106,7 @@ class Pagination extends React.Component<IPagination> { ...@@ -106,7 +106,7 @@ class Pagination extends React.Component<IPagination> {
<a onClick={ this.toPage } data-page={ paged.number + 1 } href="#" className="page-link">{t('pag.next')} &rsaquo;</a> <a onClick={ this.toPage } data-page={ paged.number + 1 } href="#" className="page-link">{t('pag.next')} &rsaquo;</a>
</li> </li>
<li className={`page-item ${paged.last ? "disabled" : ""}`}> <li className={`page-item ${paged.last ? "disabled" : ""}`}>
<a className="page-link" onClick={ this.toPage } data-page={ paged.totalPages - 1 } href="#" aria-label="{t('pag.last')}"> <a className="page-link" onClick={ this.toPage } data-page={ paged.totalPages - 1 } href="#" aria-label={ t('pag.last') }>
<span aria-hidden="true">{t('pag.last')} &raquo;</span> <span aria-hidden="true">{t('pag.last')} &raquo;</span>
</a> </a>
</li> </li>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment