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

Enhance comment time formatting with localized time ago display #21329

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

suhaib-mousa
Copy link
Contributor

This PR addresses issue #11225, enhancing the comment timestamp display by introducing a concise time ago format with the ability to toggle to a more readable timestamp upon user interaction.

Changes Include:

  • Short Time Ago Format: Displays timestamps as short formats such as 3m (3 minutes ago), 5h (5 hours ago), 2d (2 days ago), and 1w (1 week ago) for a cleaner UI.
  • Clickable Timestamps: Users can click on the short timestamp to view the full, readable format like "3 minutes ago," "5 hours ago," "2 days ago," and "1 week ago."

Screen Recording 2024-11-13 130426

- Implemented dynamic time ago formatting for comment timestamps
- Added localization support for both English and Arabic
@suhaib-mousa
Copy link
Contributor Author

Better late than never! 😂@berkansasmaz

@enisn
Copy link
Member

enisn commented Nov 15, 2024

Thanks for your contribution. It seems very nice, I'll check when I start working on the next milestone 👍

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

Successfully merging this pull request may close these issues.

2 participants