mirror of
https://github.com/flarum/framework.git
synced 2025-05-22 06:39:57 +08:00
Make front-end localizable
This commit is contained in:
@ -65,9 +65,11 @@ export default class User extends mixin(Model, {
|
||||
const items = new ItemList();
|
||||
|
||||
this.groups().forEach(group => {
|
||||
const name = group.nameSingular();
|
||||
|
||||
items.add('group' + group.id(),
|
||||
Badge.component({
|
||||
label: group.nameSingular(),
|
||||
label: app.trans('core.group_' + name.toLowerCase(), undefined, name),
|
||||
icon: group.icon(),
|
||||
style: {backgroundColor: group.color()}
|
||||
})
|
||||
|
Reference in New Issue
Block a user