-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Added translations for "edited" label in chats #4776
Added translations for "edited" label in chats #4776
Conversation
…vi/App into translation-edited-label
@Julesssss I found that the same label is hardcoded in But I need a little help here. How should I pass Options:
|
Hi @akshayasalvi, I'm not sure about this. I asked in our open source slack channel here for some help. Please feel free to add your own comments, or to follow along here |
Hi @Julesssss, |
Hi @akshayasalvi, |
Thank you. Then any other changes from my side? I'll try to join the channel. How do I join it? |
Instructions are here. I'll review the PR now. |
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.
One issue: I noticed that the HTML edited
does not update when changing language. Perhaps this is due to translateLocal
... If you are stuck here I think we should continue the discussion I started in the Slack thread
Ohh yeah, that's right. It doesn't change. |
@Julesssss I have sent the request to join slack. I've checked and my previous solution of adding |
…ion-edited-label # Conflicts: # src/languages/en.js # src/languages/es.js
Yeah, lets do that. I was a bit worried about the performance hit from adding a new subscription to a Commonly used component, but apparently it is fine 👍 |
PR updated |
src/languages/es.js
Outdated
@@ -129,6 +129,7 @@ export default { | |||
fileUploadFailed: 'Subida fallida. El archivo no es compatible.', | |||
roomIsArchived: 'Esta sala de chat ha sido eliminada', | |||
localTime: ({user, time}) => `Son las ${time} para ${user}`, | |||
edited: '(editar)', |
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.
This should be (editado)
, not (editar)
.
Edit -> Editar
Edited -> Editado/a (depending on the gender of what we edited).
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.
LGTM, just need to make the fix @aldo-expensify suggested
Is there a function to know the gender of the person who edited ? |
We don't have a way of doing this yet. Maybe we could use their pronouns which are optional, but that's out of scope of this issue. |
Then I'll just change to |
@Julesssss @aldo-expensify PR updated |
heh I may have caused some confusion here. It is the genre of what is being edited: the message (input), not the person. It really depends on how we refer to each "input" of a chat (report) in Spanish. Anyway, I think Update: Looking at other translations, I see that we refer to each input as "Comentario", so, |
Ohh. Thanks for the clarification @aldo-expensify. Sorry for the confusion :) |
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.
Looks good to me, I leave it to you @Julesssss
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by @Julesssss in version: 1.0.88-3 🚀
|
🚀 Deployed to production by @roryabraham in version: 1.0.90-2 🚀
|
@Julesssss PR for the review.
Details
Add translation for "(edited)" label
Fixed Issues
$ #4518
Tests
QA Steps
Tested On
Screenshots
Web
Mobile Web
Desktop
iOS
Android