- Exception message and full stack trace: Navigation menu does not appear on specified language setting
- Steps to reproduce the issue:
- 1 login with an account, back to the web
- 2 the navigation menus doesn't appear
- 3 if access the url directly then it will jump to the account login page let you login again
- 4 if change the language to another one, the navigation appears, if changed the language back the navigation menu disappeared again
- 5 if waiting for a moments(about 10 minutes around), the navigation menu may be appears
I have tried restart the application and the server, cleared the redis server cache, it cannot resolve it. I have 3 languages configured, english, zh-hant, zh-hans, the issue occurred on zh-hans.
2 Answer(s)
-
0
This issue is likely related to missing or misconfigured localization resources for the zh-hans language, which can cause permission checks or menu rendering to fail in ABP's navigation system. When a required localization key or permission display name is missing for a specific language, ABP may not render the related menu items, or permission checks may not work as expected.
To resolve this:
- Ensure that all required localization files (e.g.,
zh-Hans.json
) exist for every module and contain all necessary keys, especially for permissions and menu items. - Check that the language code in your configuration matches the file names and the
culture
property inside the JSON files. - If you are using the Language Management module, verify that the zh-hans language is enabled and properly configured.
- Clear the application cache (including distributed cache like Redis) after updating localization files.
- Restart the application after making changes.
- Ensure that all required localization files (e.g.,
If the problem persists, check for any custom permission providers or menu contributors that may have language-specific logic or missing translations.
For more details, see:
- https://docs.abp.io/en/abp/latest/Localization#localization-resources
- https://docs.abp.io/en/abp/latest/Modules/Language-Management
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
solved