Follow-up from "Fix: i18n issue for MRs and timeago.js" - Refactor `issuable_meta` method inside `issuables_helper` to use complete, predefined sentences rather than constructing them.
The following discussion from !85013 (merged) should be addressed:
-
@tkuah started a discussion: (+2 comments)
As per the discussion here: !85013 (comment 912161049) we want to refactor a section of the method(issuable_meta
) inside(app/helpers/issuables_helper.rb:155
) to refer to the complete, predefined sentences rather than constructing them.
From what we can tell, these would be:
'Created %{time_ago} by %{author}'
'Created %{time_ago} by %{service_desk_reply_to} via %{author}'
It's going to be a bit awkward to translate this anyway, as we use a JS library to generate the "time ago" that the issuable was created. I'm not sure if we have a way to translate that date currently? Maybe we need to make it a fixed date rather than a relative one for other languages
🤔
Edited by David O'Regan