summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Ovchinnikov <nstorm90@gmail.com>2018-08-31 15:30:42 +0300
committerMichael Ovchinnikov <nstorm90@gmail.com>2018-08-31 15:30:42 +0300
commitb43e0d727e70083416171407cf0efd46afa1603c (patch)
tree0670b6e9e443624d7b2c50b097caef369c63f136
parentc78342e7cc1876511b8ef2f9292b284edbdca03b (diff)
add i18n
-rw-r--r--i18n/en.yaml5
-rw-r--r--i18n/ru.yaml5
-rw-r--r--layouts/_default/list.html4
3 files changed, 12 insertions, 2 deletions
diff --git a/i18n/en.yaml b/i18n/en.yaml
new file mode 100644
index 0000000..4491f35
--- /dev/null
+++ b/i18n/en.yaml
@@ -0,0 +1,5 @@
+- id: nextPage
+ translation: "Next Page"
+
+- id: prevPage
+ translation: "Prev Page" \ No newline at end of file
diff --git a/i18n/ru.yaml b/i18n/ru.yaml
new file mode 100644
index 0000000..eb735ab
--- /dev/null
+++ b/i18n/ru.yaml
@@ -0,0 +1,5 @@
+- id: nextPage
+ translation: "Туда"
+
+- id: prevPage
+ translation: "Сюда" \ No newline at end of file
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index aa76b4f..5433b17 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -33,10 +33,10 @@
<footer class="list-footer">
<nav class="pagination">
{{ if $paginator.HasPrev }}
- <a class="pagination-prev" href="{{ $paginator.Prev.URL }}">← Prev Page</a>
+ <a class="pagination-prev" href="{{ $paginator.Prev.URL }}">← {{ i18n "prevPage" }}</a>
{{ end }}
{{ if $paginator.HasNext }}
- <a class="pagination-next" href="{{ $paginator.Next.URL }}">Next Page →</a>
+ <a class="pagination-next" href="{{ $paginator.Next.URL }}">{{ i18n "nextPage" }} →</a>
{{ end }}
</nav>
</footer>