diff options
author | Tim Zallmann <tzallmann@gitlab.com> | 2017-09-22 12:57:07 +0300 |
---|---|---|
committer | Tim Zallmann <tzallmann@gitlab.com> | 2017-09-22 12:57:07 +0300 |
commit | 41068df71d8c198bced9cc16eeb4ed1f70961e86 (patch) | |
tree | 908cde13256aab2a7a97b6ab5d39ede18155484c /app/assets/javascripts/vue_shared | |
parent | 3446262169c08565ce68962a0138fb58dcecbb51 (diff) | |
parent | afc556773b90764f9db7f111053ada6e9f07c34d (diff) |
Merge branch '32782-i18n-support-pagination' into 'master'
Add i18n support to pagination widget
See merge request gitlab-org/gitlab-ce!14407
Diffstat (limited to 'app/assets/javascripts/vue_shared')
-rw-r--r-- | app/assets/javascripts/vue_shared/components/table_pagination.vue | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/app/assets/javascripts/vue_shared/components/table_pagination.vue b/app/assets/javascripts/vue_shared/components/table_pagination.vue index c9dbc048345..710452bb3d3 100644 --- a/app/assets/javascripts/vue_shared/components/table_pagination.vue +++ b/app/assets/javascripts/vue_shared/components/table_pagination.vue @@ -1,11 +1,13 @@ <script> +import { s__ } from '../../locale'; + const PAGINATION_UI_BUTTON_LIMIT = 4; const UI_LIMIT = 6; const SPREAD = '...'; -const PREV = 'Prev'; -const NEXT = 'Next'; -const FIRST = '« First'; -const LAST = 'Last »'; +const PREV = s__('Pagination|Prev'); +const NEXT = s__('Pagination|Next'); +const FIRST = s__('Pagination|« First'); +const LAST = s__('Pagination|Last »'); export default { props: { |