fix: missing parameter names in token title translation. (#3752)

This commit is contained in:
Robert Korulczyk 2023-03-12 10:33:19 +01:00 committed by GitHub
parent da651c722b
commit cce6b74fce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 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 {