Merge branch 'update-pagination-texts' into 'master'
Update pagination prev and next texts See merge request gitlab-org/gitlab-ce!29911
This commit is contained in:
commit
97e8f49442
4 changed files with 13 additions and 8 deletions
|
@ -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');
|
||||
|
|
5
changelogs/unreleased/update-pagination-texts.yml
Normal file
5
changelogs/unreleased/update-pagination-texts.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: Update pagination prev and next texts
|
||||
merge_request: 29911
|
||||
author:
|
||||
type: other
|
|
@ -6943,15 +6943,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 ""
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue