mirror of
https://github.com/flarum/framework.git
synced 2025-05-23 07:09:57 +08:00
Add third tier to key namespacing
- Changes all `app.trans` calls to `app.translator.trans` calls. - Changes existing keys to [three-tier namespace structure](https://github.com/flarum/english/pull/12). - Extracts additional strings for `lib:` namespace. - Extracts two previously missed strings for EditGroupModal.js.
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
* @return {Object}
|
||||
*/
|
||||
export default function username(user) {
|
||||
const name = (user && user.username()) || app.trans('core.forum.user_deleted_text');
|
||||
const name = (user && user.username()) || app.translator.trans('core.lib.deleted_user_text');
|
||||
|
||||
return <span className="username">{name}</span>;
|
||||
}
|
||||
|
Reference in New Issue
Block a user