Skip to content
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

User message in chat has hardcoded 'You'. Cannot be translated or changed. #722

Closed
mskarabot opened this issue Feb 3, 2024 · 4 comments
Closed
Assignees

Comments

@mskarabot
Copy link

If you check this piece of code you will see that "You" is hardcoded in case if a message is user messaage:

const author = isUser ? 'You' : message.name;

This causes that it cannot be translated and or renamed.

@willydouhard
Copy link
Collaborator

We could add this in the translation files. A workaround is to set an avatar for You.

@andrePankraz
Copy link

Could you explain this workaround?
If i set an Avatar for You, I'm still "You" and not "Du" or "Max".
I can give "You" an image via await cl.Avatar(name="You", url=image).send() , but can i rename "You" (the logged in user)?

@ajosegun
Copy link

It would be interesting to be able to change the Name and Image for the logged in user avatar.

@ModEnter
Copy link
Collaborator

Hello, it is not on the roadmap right now, but you can easily change it on your side or propose a pull request, all contributions are welcome

@ModEnter ModEnter self-assigned this Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants