mirror of
https://github.com/flarum/core.git
synced 2025-07-12 04:16:24 +02:00
Switch to ICU MessageFormat (#2759)
This commit is contained in:
committed by
GitHub
parent
edaf45d133
commit
b45519974a
@ -57,7 +57,7 @@ export default class EventPost extends Post {
|
||||
* @return {String|Object} The description to render in the DOM
|
||||
*/
|
||||
description(data) {
|
||||
return app.translator.transChoice(this.descriptionKey(), data.count, data);
|
||||
return app.translator.trans(this.descriptionKey(), data);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user