Skip to content

Commit

Permalink
Locale rename previousPageLabel to prevPageLabel (#7682)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Feb 6, 2025
1 parent 186a74b commit 1f70296
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion components/lib/api/Locale.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ let locales = {
passwordHide: 'Hide Password',
passwordShow: 'Show Password',
previous: 'Previous',
previousPageLabel: 'Previous Page',
prevPageLabel: 'Previous Page',
rotateLeft: 'Rotate Left',
rotateRight: 'Rotate Right',
rowsPerPageLabel: 'Rows per page',
Expand Down
2 changes: 1 addition & 1 deletion components/lib/api/api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1112,7 +1112,7 @@ export interface LocaleOptions {
/**
* Previous Page
*/
previousPageLabel?: string;
prevPageLabel?: string;
/**
* Rows per page
*/
Expand Down
2 changes: 1 addition & 1 deletion components/lib/carousel/Carousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ export const Carousel = React.memo(
className: cx('previousButton', { isDisabled }),
onClick: (e) => navBackward(e),
disabled: isDisabled,
'aria-label': localeOption('aria') ? localeOption('aria').previousPageLabel : undefined,
'aria-label': localeOption('aria') ? localeOption('aria').prevPageLabel : undefined,
'data-pc-group-section': 'navigator'
},
ptm('previousButton')
Expand Down
2 changes: 1 addition & 1 deletion components/lib/galleria/GalleriaThumbnails.js
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ export const GalleriaThumbnails = React.memo(
type: 'button',
disabled: isDisabled,
'data-p-disabled': isDisabled,
'aria-label': localeOption('aria') ? localeOption('aria').previousPageLabel : undefined,
'aria-label': localeOption('aria') ? localeOption('aria').prevPageLabel : undefined,
'data-pc-group-section': 'thumbnailnavigator'
},
getPTOptions('previousThumbnailButton')
Expand Down
2 changes: 1 addition & 1 deletion components/lib/hooks/useLocale.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ let locales = {
passwordHide: 'Hide Password',
passwordShow: 'Show Password',
previous: 'Previous',
previousPageLabel: 'Previous Page',
prevPageLabel: 'Previous Page',
rotateLeft: 'Rotate Left',
rotateRight: 'Rotate Right',
rowsPerPageLabel: 'Rows per page',
Expand Down
2 changes: 1 addition & 1 deletion components/lib/paginator/PrevPageLink.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const PrevPageLink = React.memo((inProps) => {
className: cx('prevPageButton', { disabled: props.disabled }),
onClick: props.onClick,
disabled: props.disabled,
'aria-label': ariaLabel('previousPageLabel')
'aria-label': ariaLabel('prevPageLabel')
},
getPTOptions('prevPageButton')
);
Expand Down
2 changes: 1 addition & 1 deletion components/lib/tabview/TabView.js
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ export const TabView = React.forwardRef((inProps, ref) => {
ref: prevBtnRef,
type: 'button',
className: cx('prevbutton'),
'aria-label': ariaLabel('previousPageLabel'),
'aria-label': ariaLabel('prevPageLabel'),
onClick: (e) => navBackward(e)
},
ptm('prevbutton')
Expand Down

0 comments on commit 1f70296

Please sign in to comment.