-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
fix: ai translations description for atoms #17875
base: main
Are you sure you want to change the base?
Conversation
Graphite Automations"Add platform team as reviewer" took an action on this PR • (11/27/24)1 reviewer was added to this PR based on Keith Williams's automation. |
@@ -358,6 +355,7 @@ const BookerComponent = ({ | |||
event={event.data} | |||
isPending={event.isPending} | |||
isPlatform={isPlatform} | |||
i18nLocales={i18nLocales} |
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.
double checking: you don't need to pass userLocale
here?
@@ -61,8 +61,9 @@ export const EventMeta = ({ | |||
eventMetaTitle?: string; | |||
eventMetaTimezoneSelect?: string; | |||
}; | |||
locale?: string | null; |
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.
shouldn't this be userLocale
? based on the other changes you added
@@ -219,6 +225,9 @@ export const BookerWebWrapper = (props: BookerWebWrapperAtomProps) => { | |||
schedule={schedule} | |||
verifyCode={verifyCode} | |||
isPlatform={false} | |||
areInstantMeetingParametersSet={areInstantMeetingParametersSet} | |||
userLocale={session?.user.locale} | |||
i18nLocales={i18nLocales} |
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.
Hmm passing a prop doesn't seem optimal. I'd suggest importing it from i18n.json
where it's needed
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 2 Skipped Deployments
|
const translatedDescription = (event?.fieldTranslations ?? []).find( | ||
(trans) => | ||
trans.field === EventTypeAutoTranslatedField.DESCRIPTION && | ||
i18nLocales.includes(trans.targetLocale) && | ||
i18nLocales.locale.targets.includes(trans.targetLocale) && |
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.
- i18nLocales name is misleading
i18n.locale.targets.concat([i18n.locale.source])
E2E results are ready! |
What does this PR do?
Mandatory Tasks (DO NOT REMOVE)
How should this be tested?
Checklist