Skip to content

Commit

Permalink
Merge pull request wso2#7441 from pavinduLakshan/fix_marketing_consent
Browse files Browse the repository at this point in the history
  • Loading branch information
pavinduLakshan authored Jan 29, 2025
2 parents d3bf431 + 18e8c1c commit ebe1e92
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .changeset/rude-eggs-sort.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wso2is/admin.extensions.v1": patch
---

Fix broken i18n in marketing consent modal
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ export const MarketingConsentModal: FunctionComponent<MarketingConsentModalPropT
.then((response: AxiosResponse) => {
if (response?.status !== 200) {
dispatch(addAlert<AlertInterface>({
description: t("console:marketingConsent.notifications.errors.update.description"),
description: t("console:common.marketingConsent.notifications.errors.update.description"),
level: AlertLevels.ERROR,
message: t("console:marketingConsent.notifications.errors.update.message")
message: t("console:common.marketingConsent.notifications.errors.update.message")
}));
}

Expand All @@ -90,9 +90,9 @@ export const MarketingConsentModal: FunctionComponent<MarketingConsentModalPropT
})
.catch((_: IdentityAppsApiException) => {
dispatch(addAlert<AlertInterface>({
description: t("console:marketingConsent.notifications.errors.update.description"),
description: t("console:common.marketingConsent.notifications.errors.update.description"),
level: AlertLevels.ERROR,
message: t("console:marketingConsent.notifications.errors.update.message")
message: t("console:common.marketingConsent.notifications.errors.update.message")
}));
})
.finally(() => {
Expand Down Expand Up @@ -145,7 +145,7 @@ export const MarketingConsentModal: FunctionComponent<MarketingConsentModalPropT
data-componentid={ `${componentId}-heading` }
className="ui header"
>
{ t("console:marketingConsent.heading") }
{ t("console:common.marketingConsent.heading") }
</h4>
<Icon
link={ true }
Expand All @@ -158,7 +158,7 @@ export const MarketingConsentModal: FunctionComponent<MarketingConsentModalPropT
/>
</div>
<Card.Description className="mb-2">
{ t("console:marketingConsent.description") }
{ t("console:common.marketingConsent.description") }
</Card.Description>
<Card.Content>
<Button
Expand All @@ -167,7 +167,7 @@ export const MarketingConsentModal: FunctionComponent<MarketingConsentModalPropT
disabled={ isLoading }
data-componentid={ `${componentId}-subscribe-btn` }
>
{ t("console:marketingConsent.actions.subscribe") }
{ t("console:common.marketingConsent.actions.subscribe") }
</Button>
<Button
basic
Expand All @@ -177,7 +177,7 @@ export const MarketingConsentModal: FunctionComponent<MarketingConsentModalPropT
disabled={ isLoading }
data-componentid={ `${componentId}-decline-btn` }
>
{ t("console:marketingConsent.actions.decline") }
{ t("console:common.marketingConsent.actions.decline") }
</Button>
</Card.Content>
</Card.Content>
Expand Down

0 comments on commit ebe1e92

Please sign in to comment.