From the GUI there is no way of knowing how long time ago a comment was posted. And neither how long time ago someone replied to your comment. We need some way of showing time, i copied the time format logic used on reddit since i think it fits well for comments. Would be nice to add a time stamp to proposals as well.
WHAT
Created a timeDateUtils file which will handle formatting and changing of locale. So when changing language though the action setLanguageTranslation we also update moments locale.
HOW TO TEST
Go to a proposal page with comments and see that time is now in the comment header.
Change language and verify that the time text changes to the correct language.
WHY
From the GUI there is no way of knowing how long time ago a comment was posted. And neither how long time ago someone replied to your comment. We need some way of showing time, i copied the time format logic used on reddit since i think it fits well for comments. Would be nice to add a time stamp to proposals as well.
WHAT
Created a timeDateUtils file which will handle formatting and changing of locale. So when changing language though the action
setLanguageTranslation
we also update moments locale.HOW TO TEST