Skip to content

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
CleanShot_2023-05-24_at_11.12.23_2x CleanShot_2023-05-24_at_11.13.13_2x

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Go to any project's merge requests
  2. Find an merged issue.
  3. Change the preferred language to any language other than English.
  4. 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.

Edited by Wu Jeremy

Merge request reports

Loading