mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 08:04:52 +08:00
FIX: Weird translation error. 🔥d
This commit is contained in:
parent
4f60344a9f
commit
9629f63612
|
@ -17,7 +17,7 @@ const icons = {
|
|||
export function actionDescription(actionCode, createdAt) {
|
||||
return function() {
|
||||
const ac = this.get(actionCode);
|
||||
if (actionCode) {
|
||||
if (ac) {
|
||||
const dt = new Date(this.get(createdAt));
|
||||
const when = Discourse.Formatter.relativeAge(dt, {format: 'medium-with-ago'});
|
||||
return I18n.t(`action_codes.${ac}`, {when}).htmlSafe();
|
||||
|
|
Loading…
Reference in New Issue
Block a user