mirror of
https://github.com/flarum/core.git
synced 2025-07-27 11:40:24 +02:00
fix: missing parameter names in token title translation. (#3752)
This commit is contained in:
@@ -185,7 +185,7 @@ export default class AccessTokensList<CustomAttrs extends IAccessTokensListAttrs
|
|||||||
const name = token.title() || app.translator.trans('core.forum.security.token_title_placeholder');
|
const name = token.title() || app.translator.trans('core.forum.security.token_title_placeholder');
|
||||||
const value = this.tokenValueDisplay(token);
|
const value = this.tokenValueDisplay(token);
|
||||||
|
|
||||||
return app.translator.trans('core.forum.security.token_item_title', { name, value });
|
return app.translator.trans('core.forum.security.token_item_title', { title: name, token: value });
|
||||||
}
|
}
|
||||||
|
|
||||||
tokenValueDisplay(token: AccessToken): Mithril.Children {
|
tokenValueDisplay(token: AccessToken): Mithril.Children {
|
||||||
|
Reference in New Issue
Block a user