mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 02:40:53 -06:00
FIX: correctly localizes period chooser row title
This commit is contained in:
parent
2c1ede6e5f
commit
e5dc8ab5c1
@ -1,6 +1,12 @@
|
||||
import DropdownSelectBoxRowComponent from "select-kit/components/dropdown-select-box/dropdown-select-box-row";
|
||||
import computed from "ember-addons/ember-computed-decorators";
|
||||
|
||||
export default DropdownSelectBoxRowComponent.extend({
|
||||
layoutName: "select-kit/templates/components/period-chooser/period-chooser-row",
|
||||
classNames: "period-chooser-row"
|
||||
classNames: "period-chooser-row",
|
||||
|
||||
@computed("computedContent")
|
||||
title(computedContent) {
|
||||
return I18n.t(`filters.top.${computedContent.name || 'this_week'}`).title;
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user