- ABP Framework version: v7.3.2
- UI Type: Angular
- Database System: EF Core MySQL
- Tiered (for MVC) or Auth Server Separated (for Angular): yes
- Exception message and full stack trace:
- Steps to reproduce the issue:
I have added extra properties for users according to the document below https://docs.abp.io/en/abp/latest/UI/Angular/Dynamic-Form-Extensions
However, in the account management screen, extra properties cannot be translated How can we fix this problem?
4 Answer(s)
-
0
Hey,
I would guess that this is because of the different localization resource.
does this help? https://support.abp.io/QA/Questions/857/Overriding-localization-text-of-Abp-modules
-
0
import { EditFormPropContributorCallback, EntityActionContributorCallback, EntityPropContributorCallback, ToolbarActionContributorCallback } from '@abp/ng.theme.shared/extensions'; import { eAccountComponents } from '../enums/components'; import { IdentitySecurityLogDto } from '@volo/abp.commercial.ng.ui/config'; import { ProfileDto } from '@volo/abp.ng.account/public/proxy'; export type AccountEntityActionContributors = Partial<{ [eAccountComponents.MySecurityLogs]: EntityActionContributorCallback<IdentitySecurityLogDto>[]; }>; export type AccountToolbarActionContributors = Partial<{ [eAccountComponents.MySecurityLogs]: ToolbarActionContributorCallback<IdentitySecurityLogDto[]>[]; }>; export type AccountEntityPropContributors = Partial<{ [eAccountComponents.MySecurityLogs]: EntityPropContributorCallback<IdentitySecurityLogDto>[]; }>; export type AccountEditFormPropContributors = Partial<{ [eAccountComponents.PersonalSettings]: EditFormPropContributorCallback<ProfileDto>[]; }>; export interface AccountConfigOptions { redirectUrl?: string; entityActionContributors?: AccountEntityActionContributors; toolbarActionContributors?: AccountToolbarActionContributors; entityPropContributors?: AccountEntityPropContributors; isPersonalSettingsChangedConfirmationActive?: boolean; }
@volo\abp.ng.account\public\models\config-options.d.ts In config options I am seeing AccountEditFormPropContributors not being used
-
0
Hello,
- I've created an internal issue for config-options model and I've refunded your credit.
- Also We'll make sure why extra property's label not localized. If there is a bug we'll create another issue for that I'll give you feedback 🙂
-
0
Hi linhhn, we have added
AccountEditFormPropContributors
and new props can be added without localization problem. It will be usable in 7.4 final.But i couldn't add new field as a extra property therefore i couldn't produce localization problem on extra properties, can you help me on producing the problem?