Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ const SaveArticleButtonGuest = () => {
},
});

if (!saveArticleButton) return null;

const handleClick = (e: React.MouseEvent<HTMLButtonElement>) => {
onClickTrack?.(e);
setIsModalOpen(true);
Expand Down
56 changes: 56 additions & 0 deletions src/app/lib/config/services/mundo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,62 @@ export const service: DefaultServiceConfig = {
title: 'File Download',
},
gist: 'Sumario',
account: {
signIn: 'Sign In',
signInAccessibleLabel: 'Sign in to My News',
forYou: 'Your Account',
register: 'Register',
Comment thread
elvinasv marked this conversation as resolved.
},
accountPromoBanner: {
title: 'Your very own BBC',
description: 'Sign In or create an account for free',
closeLabel: 'Close',
buttonSeparatorText: 'or',
},
accountSignInModal: {
title: 'Sign in to save to My News',
description: 'Save stories and read them at your convenience',
closeLabel: 'Close',
},
saveArticleButton: {
loading: 'Loading',
save: 'Save for later',
saving: 'Saving',
saved: 'Saved to My News',
remove: 'Remove',
removeAccessible: 'Saved. Remove from My News',
removing: 'Removing',
},
myNews: {
title: 'My News',
guestTitle: 'Welcome to My News',
description: 'My saved articles',
guestDescription:
'Sign in to save articles to My News, and read them at your convenience.',
noArticles: 'You haven’t saved any articles yet',
errorText:
'This content doesn’t seem to be loading. Please try again later.',
loading: 'Loading',
noJsDescription:
'Please enable JavaScript or use another browser to view this content.',
},
actionTooltip: {
success: {
titleBefore: 'This article is now saved to',
titleAfter: '',
},
error: {
title: 'Sorry, something went wrong',
body: 'Check your connection, refresh the page and try again',
},
removed: {
titleBefore: 'This article has now been removed from',
titleAfter: '',
},
myNewsLinkText: 'My News',
myNewsUrl: 'https://www.bbc.com/mundo/my-news',
closeLabel: 'Close',
},
error: {
404: {
statusCode: '404',
Expand Down
56 changes: 56 additions & 0 deletions src/app/lib/config/services/portuguese.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,62 @@ export const service: DefaultServiceConfig = {
title: 'File Download',
},
gist: 'Pontos-chave',
account: {
signIn: 'Sign In',
signInAccessibleLabel: 'Sign in to My News',
forYou: 'Your Account',
register: 'Register',
Comment thread
elvinasv marked this conversation as resolved.
},
accountPromoBanner: {
title: 'Your very own BBC',
description: 'Sign In or create an account for free',
closeLabel: 'Close',
buttonSeparatorText: 'or',
},
accountSignInModal: {
title: 'Sign in to save to My News',
description: 'Save stories and read them at your convenience',
closeLabel: 'Close',
},
saveArticleButton: {
loading: 'Loading',
save: 'Save for later',
saving: 'Saving',
saved: 'Saved to My News',
remove: 'Remove',
removeAccessible: 'Saved. Remove from My News',
removing: 'Removing',
},
myNews: {
title: 'My News',
guestTitle: 'Welcome to My News',
description: 'My saved articles',
guestDescription:
'Sign in to save articles to My News, and read them at your convenience.',
noArticles: 'You haven’t saved any articles yet',
errorText:
'This content doesn’t seem to be loading. Please try again later.',
loading: 'Loading',
noJsDescription:
'Please enable JavaScript or use another browser to view this content.',
},
actionTooltip: {
success: {
titleBefore: 'This article is now saved to',
titleAfter: '',
},
error: {
title: 'Sorry, something went wrong',
body: 'Check your connection, refresh the page and try again',
},
removed: {
titleBefore: 'This article has now been removed from',
titleAfter: '',
},
myNewsLinkText: 'My News',
myNewsUrl: 'https://www.bbc.com/portuguese/my-news',
closeLabel: 'Close',
},
error: {
404: {
statusCode: '404',
Expand Down
4 changes: 2 additions & 2 deletions src/app/lib/config/toggles/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ exports[`Toggles Config when application environment is local should contain cor
"_environment": "local",
"account": {
"enabled": true,
"value": "hindi",
"value": "hindi|mundo|portuguese",
},
"ads": {
"enabled": true,
Expand Down Expand Up @@ -194,7 +194,7 @@ exports[`Toggles Config when application environment is local should contain cor
},
"uasPersonalization": {
"enabled": true,
"value": "hindi",
"value": "hindi|mundo|portuguese",
},
"variantCookie": {
"enabled": true,
Expand Down
4 changes: 2 additions & 2 deletions src/app/lib/config/toggles/localConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
_environment: 'local',
account: {
enabled: true,
value: 'hindi',
value: 'hindi|mundo|portuguese',
},
Comment thread
elvinasv marked this conversation as resolved.
ads: {
enabled: true,
Expand Down Expand Up @@ -94,7 +94,7 @@ export default {
},
uasPersonalization: {
enabled: true,
value: 'hindi',
value: 'hindi|mundo|portuguese',
},
webVitalsMonitoring: {
enabled: true,
Expand Down
Loading