ABP中带括号的权限displayName

Permission displayName with brackets in ABP

我正在使用 AspNet Boilerplate,我不知道为什么在查询中添加新权限时,displayName 带有括号。

Problem image here

Permission creation

角色和用户权限正常无括号。

注:我的英文不是很好

您错过了本地化文件中的翻译,如 https://aspnetboilerplate.com/Pages/Documents/Localization#server-side 中所述:

If a given string is not defined anywhere, then it returns the given string by humanizing and wrapping it with [ and ] by default (instead of throwing an Exception). Example: If a given text is "ThisIsMyText", then the result will be "[This is my text]"

编辑您的翻译文件并添加您要使用的新翻译密钥。