Hi,
How to update the default cookie consent message provides by ABP. As I did not find where the message is coming from?
3 Answer(s)
-
0
To update the default cookie consent message in ABP, you need to override the localization keys used by the Cookie Consent component. Add or update the following keys in your localization resource files:
"ThisWebsiteUsesCookie": "Your custom message here.", "CookieConsentAgreePolicies": "If you continue to browse, then you agree to our {0} and {1}.", "CookieConsentAgreePolicy": "If you continue to browse, then you agree to our {0}."
You can customize the text as needed. These keys control the displayed messages in the cookie consent dialog.
For more details on localization and overriding existing entries, refer to the ABP documentation.
Sources:
- https://abp.io/docs/latest/modules/gdpr
This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.
-
0
How to update the AbpLocalizationTexts below. Needs to update the cookie consent message. Even after I updated the content in the entity directly, the old message is still getting appeared.
"{"Volo.Abp.Gdpr:010001":"You have previously requested to download personal data. Once the given request time period has passed, you can create a new one.","Volo.Abp.Gdpr:010002":"Your personal data is still being prepared. You can download it at {GdprDataReadyTime}.","PersonalData":"Personal Data","Menu:PersonalData":"Personal data","PersonalDataDescription":"Your account contains the personal data that you have given us. This page allows you to download or delete that data.","RequestPersonalData":"Request Personal Data","DeletePersonalData":"Delete Personal Data","CreationTime":"Creation Time","Action":"Action","Preparing":"Preparing","Download":"Download","ReadyTime":"Ready Time","DeletePersonalDataWarning":"Deleting this data will remove your account and you will no longer log in to the application! Are you sure you want to proceed?","PersonalDataDeleteRequestReceived":"Your personal data delete request is being processed... At the end of the data deletion process, your account will be deleted and you will no longer be able to use it.","PersonalDataPrepareRequestReceived":"Your personal data request is being processed. You can download it from this page, once it\u0027s ready!","NoDataAvailable":"No data is available.","Accept":"Accept","CookiePolicy":"Cookie Policy","PrivacyPolicy":"Privacy Policy","ThisWebsiteUsesCookie":"This website uses cookies.","CookieConsentAgreePolicies":"If you continue to browse, then agree our {0} and {1}.","CookieConsentAgreePolicy":"If you continue to browse, then you agree to our {0}.","CanNotGetDownloadToken":"You can\u0027t get a download token for this request!"}"
After added below tags, still the cookie consent message is not updated. "ThisWebsiteUsesCookie": "Your custom message here.", "CookieConsentAgreePolicies": "If you continue to browse, then you agree to our {0} and {1}.", "CookieConsentAgreePolicy": "If you continue to browse, then you agree to our {0}."
-
0
hi
You can update the localization texts from the language-management module.
https://abp.io/docs/latest/modules/language-management#language-texts