-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Internationalize purpose descriptions #181
Conversation
This pull request has been linked to 1 task:
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
few changes needed, lmk if you want to huddle and get through them quick!
package.json
Outdated
@@ -7,7 +7,7 @@ | |||
"url": "https://github.com/transcend-io/consent-manager-ui.git" | |||
}, | |||
"homepage": "https://github.com/transcend-io/consent-manager-ui", | |||
"version": "4.21.2", | |||
"version": "4.21.3", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets bump this a minor version, this is more than a bugfix
return { | ||
...allMessages, | ||
[purposeType]: { | ||
id: `cm-ui.purpose.${purposeType}`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh actually i see whats going on here, nvm, we will have to split out inverted. lets make a useGetInvertedPurposeMessageKeys
hook for now (in the future these should probably also be messages?)
src/messages.ts
Outdated
@@ -456,32 +456,60 @@ export const bottomMenuMessages = defineMessages('ui.src.bottomMenu', { | |||
}, | |||
}); | |||
|
|||
export const purposeMessages = defineMessages('purpose.trackingType', { | |||
'essential.title': { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'essential.title': { | |
'Essential.title': { |
these tracking types should all be pascal case, right? we switched it in the monorepo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh right, I need to fix this. weirdly it still worked
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah because the ones being displayed are overwritten successfully. if you remember when we were testing we had like Functional: undefined
, p sure that was because of this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, yeah I think you're right!
return { | ||
...allMessages, | ||
[purposeType]: { | ||
id: `cm-ui.purpose.${purposeType}`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh actually i see whats going on here, nvm, we will have to split out inverted. lets make a useGetInvertedPurposeMessageKeys
hook for now (in the future these should probably also be messages?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥🔥🔥🔥🔥
Related Issues
Security Implications
[none]
System Availability
[none]
Kapture.2024-10-25.at.13.16.32.mp4