1
0
mirror of https://github.com/flarum/core.git synced 2025-07-26 03:01:22 +02:00

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

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 {