Setting language (the correct way)
# đź“–tutorials
j
Hi
i updated it
you will need to add in this CSS for it to work
const preferredLanguage = event.nlu?.entities?.find((entity) => entity.type === 'preferred_language')?.value if (preferredLanguage) { user.TranslatorAgent.language = preferredLanguage } else { const userLanguage = event.payload.text user.TranslatorAgent.language = userLanguage }
I am a proffesional translator
@rhythmic-lizard-47527
look here
@rhythmic-lizard-47527
t
Where would you add this @jolly-policeman-82775? Thanks
j
hi
after the set user language card
setup a execute card