Fix: MR widget timeago locale issue
What does this MR do and why?
The current version of MR widget (after merged) will generate a timestamp to tell the user when did this MR has been merged, but the timestamp was not localized to the user's preferred language, in this MR, the language code has been added to the format method, so that the preferred language of the current user can be inherited and correctly processed.
/cc @prajnamas @qk44077907 @orozot
Describe in detail what your merge request does and why.
Fix: MR widget timeago locale issue
- Add language code for timeago formatter.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Go to any project's merge requests
- Find an merged issue.
- Change the preferred language to any language other than English.
- Observe.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.