adobe / adobe/aem-core-forms-components
Loading dictionary throws 404 not found for languages not present in core components dictionary
- Dominant language
- JavaScript
- Stars
- 36
- Forks
- 62
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 8
Description
### Expected Behaviour
Should not try to load dictionary if not present for the language
### Actual Behaviour
404 Not Found - for call
https:///etc.clientlibs/core/fd/af-clientlibs/core-forms-components-runtime-all/resources/i18n/nl-nl.json
We have high amount of 404 not found highlighted in Production monitoring logs because of this issue.
### Reproduce Scenario (including but not limited to)
We have a page authored with lang=nl-nl , The form on initialization is trying to load languages and throwing 404 not found for languages not present under /apps/core/fd/af-clientlibs/core-forms-components-runtime-all/resources/i18n
#### Steps to Reproduce
1)Author a page with lang=nl-nl
2)Add Form onto the page
3)Publish the page
4)View in publish
#### Platform and Version
AEM 6.5.22
#### AEM Version (mention the exact version in case of cloud SDK)
#### AEM Forms Version
1.1.66
#### Sample Code that illustrates the problem
https://github.com/adobe/aem-core-forms-components/blob/84b2898e721f790a0378dc1146fc3fa61caf61a2/ui.frontend/src/LanguageUtils.js#L45
#### Logs taken while reproducing problem
Contributor guide
Assessment
This issue has not been assessed yet.