Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

locale based pagination strings #74

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ Thumbs.db
node_modules
_site
dist
upload
/.idea
deploy.log
config.yml
Expand Down
4 changes: 4 additions & 0 deletions src/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
"title": "404 Seite nicht gefunden",
"subtext_html": "Die von Ihnen angeforderte Seite existiert nicht. Klicken Sie <a href=\"/collections/all\">hier</a>, um den Einkauf fortzusetzen."
},
"pagination": {
"previous": "Zurück",
"next": "Vorwärts"
},
"password_page": {
"opening_soon": "Eröffnet demnächst",
"spread_the_word": "Weitersagen",
Expand Down
4 changes: 4 additions & 0 deletions src/locales/en.default.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
"title": "404 Page Not Found",
"subtext_html": "The page you requested does not exist. Click <a href=\"/collections/all\">here</a> to continue shopping."
},
"pagination": {
"previous": "Previous",
"next": "Next"
},
"password_page": {
"opening_soon": "Opening Soon",
"spread_the_word": "Spread the word",
Expand Down
4 changes: 4 additions & 0 deletions src/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
"title": "404 Página no encontrada",
"subtext_html": "La página que ha solicitado no existe. Haga clic <a href=\"/collections/all\">aquí</a> para continuar la compra."
},
"pagination": {
"previous": "Anterior",
"next": "Siguiente"
},
"password_page": {
"opening_soon": "Apertura Próximamente",
"spread_the_word": "Haz Correr la Voz",
Expand Down
4 changes: 4 additions & 0 deletions src/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
"title": "404 - Page non trouvée",
"subtext_html": "Cette page n'est pas disponible. <a href=\"/collections/all\">Retourner au magasinage</a>"
},
"pagination": {
"previous": "Précédent",
"next": "Suivant"
},
"password_page": {
"opening_soon": "Bientôt ouvert",
"spread_the_word": "Passez le mot",
Expand Down
4 changes: 4 additions & 0 deletions src/locales/pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
"title": "404 Página não encontrada",
"subtext_html": "A página que você solicitou não existe. Clique <a href=\"/collections/all\">aqui</a> para voltar às compras."
},
"pagination": {
"previous": "Voltar",
"next": "Avançar"
},
"password_page": {
"opening_soon": "Abertura em Breve",
"spread_the_word": "Espalhe a novidade",
Expand Down
4 changes: 4 additions & 0 deletions src/locales/pt-PT.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
"title": "404 Página Não Encontrada",
"subtext_html": "A página que solicitou não existe. Clique <a href=\"/collections/all\">aqui</a> para continuar as suas compras."
},
"pagination": {
"previous": "Anterior",
"next": "Seguinte"
},
"password_page": {
"opening_soon": "Abre Brevemente",
"spread_the_word": "Passe a palavra",
Expand Down
4 changes: 3 additions & 1 deletion src/snippets/pagination.liquid
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{%- assign previous_page = 'general.pagination.previous' | t -%}
{%- assign next_page = 'general.pagination.next' | t -%}
<div class="pagination">
{{ paginate | default_pagination: next: 'Next', previous: 'Previous' }}
{{ paginate | default_pagination: next: next_page, previous: previous_page }}
</div>