Update pagination prev and next texts

This commit is contained in:
Paul Gascou-Vaillancourt 2019-06-20 14:48:44 -04:00
parent ea795837fd
commit 4e6d6877f7
4 changed files with 13 additions and 8 deletions

View File

@ -3,8 +3,8 @@ import { s__ } from '~/locale';
export const PAGINATION_UI_BUTTON_LIMIT = 4;
export const UI_LIMIT = 6;
export const SPREAD = '...';
export const PREV = s__('Pagination|Prev');
export const NEXT = s__('Pagination|Next');
export const PREV = s__('Pagination| Prev');
export const NEXT = s__('Pagination|Next ');
export const FIRST = s__('Pagination|« First');
export const LAST = s__('Pagination|Last »');
export const LABEL_FIRST_PAGE = s__('Pagination|Go to first page');

View File

@ -0,0 +1,5 @@
---
title: Update pagination prev and next texts
merge_request: 29911
author:
type: other

View File

@ -6937,15 +6937,15 @@ msgstr ""
msgid "Pagination|Last »"
msgstr ""
msgid "Pagination|Next"
msgstr ""
msgid "Pagination|Prev"
msgid "Pagination|Next "
msgstr ""
msgid "Pagination|« First"
msgstr ""
msgid "Pagination| Prev"
msgstr ""
msgid "Parameter"
msgstr ""

View File

@ -217,7 +217,7 @@ describe('Pagination component', () => {
change: spy,
});
expect(component.$el.querySelector('.js-next-button').textContent.trim()).toEqual('Next');
expect(component.$el.querySelector('.js-next-button').textContent.trim()).toEqual('Next ');
component.$el.querySelector('.js-next-button .page-link').click();
@ -237,7 +237,7 @@ describe('Pagination component', () => {
change: spy,
});
expect(component.$el.querySelector('.js-next-button').textContent.trim()).toEqual('Next');
expect(component.$el.querySelector('.js-next-button').textContent.trim()).toEqual('Next ');
component.$el.querySelector('.js-next-button .page-link').click();