Skip to content

Commit

Permalink
remove old labels
Browse files Browse the repository at this point in the history
  • Loading branch information
kate-kazantseva committed Oct 31, 2024
1 parent cbbd38b commit 3e5d58e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 30 deletions.
14 changes: 7 additions & 7 deletions src/components/constants.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { DefinedMessage } from '@transcend-io/internationalization';
import { completeOptionsMessages, completeOptionsInvertedMessages, purposeMessages } from '../messages';
import { completeOptionsInvertedMessages, purposeMessages } from '../messages';

// Mapping of purposes to the message translation key
export const DEFAULT_PURPOSE_TO_MESSAGE_KEY: Record<string, DefinedMessage> = {
Essential: completeOptionsMessages.essentialLabel,
Functional: completeOptionsMessages.functionalLabel,
Analytics: completeOptionsMessages.analyticsLabel,
Advertising: completeOptionsMessages.advertisingLabel,
SaleOfInfo: completeOptionsMessages.saleOfInfoLabel,
Essential: purposeMessages['Essential.title'],
Functional: purposeMessages['Functional.title'],
Analytics: purposeMessages['Analytics.title'],
Advertising: purposeMessages['Advertising.title'],
SaleOfInfo: purposeMessages['SaleOfInfo.title'],
};

export const DEFAULT_PURPOSE_TO_DESCRIPTION_KEY: Record<
Expand All @@ -25,7 +25,7 @@ export const DEFAULT_PURPOSE_TO_INVERTED_MESSAGE_KEY: Record<
string,
DefinedMessage
> = {
Essential: completeOptionsMessages.essentialLabel,
Essential: purposeMessages['Essential.title'],
Functional: completeOptionsInvertedMessages.functionalLabel,
Analytics: completeOptionsInvertedMessages.analyticsLabel,
Advertising: completeOptionsInvertedMessages.advertisingLabel,
Expand Down
23 changes: 0 additions & 23 deletions src/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -508,29 +508,6 @@ export const purposeMessages = defineMessages('purpose.trackingType', {
export const completeOptionsMessages = defineMessages(
'ui.src.completeOptions',
{
essentialLabel: {
defaultMessage: 'Essential',
description: 'Text for essential purposes in CompleteOptions view state.',
},
functionalLabel: {
defaultMessage: 'Functional',
description:
'Text for functional purposes in CompleteOptions view state.',
},
analyticsLabel: {
defaultMessage: 'Analytics',
description: 'Text for analytics purposes in CompleteOptions view state.',
},
advertisingLabel: {
defaultMessage: 'Advertising',
description:
'Text for advertising purposes in CompleteOptions view state.',
},
saleOfInfoLabel: {
defaultMessage: 'SaleOfInfo',
description:
'Text for sale of information purposes in CompleteOptions view state.',
},
saveButtonPrimary: {
defaultMessage: 'Confirm',
description: 'Confirm button text in CompleteOptions view state.',
Expand Down

0 comments on commit 3e5d58e

Please sign in to comment.