Merge pull request #10 from movch/feat/i18n

🏗️ Add i18n
This commit is contained in:
南小北 2018-09-02 14:59:43 +08:00 committed by GitHub
commit 3730b32107
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 2 deletions

5
i18n/en.yaml Normal file
View File

@ -0,0 +1,5 @@
- id: nextPage
translation: "Next Page"
- id: prevPage
translation: "Prev Page"

5
i18n/ru.yaml Normal file
View File

@ -0,0 +1,5 @@
- id: nextPage
translation: "Туда"
- id: prevPage
translation: "Сюда"

View File

@ -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>