mirror of
https://github.com/discourse/discourse.git
synced 2025-02-26 10:17:23 +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) {
|
export function actionDescription(actionCode, createdAt) {
|
||||||
return function() {
|
return function() {
|
||||||
const ac = this.get(actionCode);
|
const ac = this.get(actionCode);
|
||||||
if (actionCode) {
|
if (ac) {
|
||||||
const dt = new Date(this.get(createdAt));
|
const dt = new Date(this.get(createdAt));
|
||||||
const when = Discourse.Formatter.relativeAge(dt, {format: 'medium-with-ago'});
|
const when = Discourse.Formatter.relativeAge(dt, {format: 'medium-with-ago'});
|
||||||
return I18n.t(`action_codes.${ac}`, {when}).htmlSafe();
|
return I18n.t(`action_codes.${ac}`, {when}).htmlSafe();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user