Skip to content

Commit 3cd0cf4

Browse files
authored
MWPW-175459: adds new strings for localization (#4464)
* MWPW-175459: adds new strings for localization * updates unit tests * linting erros * Unit tests updates
1 parent 92544e7 commit 3cd0cf4

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

libs/blocks/caas/utils.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -710,6 +710,8 @@ export const getConfig = async (originalState, strs = {}) => {
710710
|| 'Please try reloading the page or try coming back to the page another time.',
711711
lastModified: strs.lastModified || 'Last modified {date}',
712712
playVideo: strs.playVideo || 'Play, {cardTitle}',
713+
nextCards: strs.nextCards || 'Next Cards',
714+
prevCards: strs.prevCards || 'Previous Cards',
713715
},
714716
detailsTextOption: state.detailsTextOption,
715717
hideDateInterval: state.hideDateInterval,

test/blocks/caas-config/expectedConfigs/defaultConfig.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ const defaultConfig = {
2828
onErrorDescription:
2929
'Please try reloading the page or try coming back to the page another time.',
3030
titleHeadingLevel: 'h3',
31+
nextCards: 'Next Cards',
32+
prevCards: 'Previous Cards',
3133
},
3234
detailsTextOption: 'default',
3335
setCardBorders: false,

test/blocks/caas/utils.test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ describe('getConfig', () => {
190190
onErrorTitle: 'Error Loading Title',
191191
onErrorDescription: 'Error Desc',
192192
titleHeadingLevel: 'h3',
193+
nextCards: 'Next Cards',
194+
prevCards: 'Previous Cards',
193195
},
194196
setCardBorders: false,
195197
showCardBadges: false,
@@ -460,6 +462,8 @@ describe('getConfig', () => {
460462
onErrorTitle: 'Error Loading Title',
461463
onErrorDescription: 'Error Desc',
462464
titleHeadingLevel: 'h3',
465+
nextCards: 'Next Cards',
466+
prevCards: 'Previous Cards',
463467
},
464468
setCardBorders: false,
465469
showCardBadges: false,
@@ -826,6 +830,8 @@ describe('getFloodgateCaasConfig', () => {
826830
onErrorTitle: 'Error Loading Title',
827831
onErrorDescription: 'Error Desc',
828832
titleHeadingLevel: 'h3',
833+
nextCards: 'Next Cards',
834+
prevCards: 'Previous Cards',
829835
},
830836
setCardBorders: false,
831837
showCardBadges: false,

0 commit comments

Comments
 (0)