adobe / adobe/aem-core-forms-components

Loading dictionary throws 404 not found for languages not present in core components dictionary

Open
#1,692 4 comments 0 reactions 1 assignee Claimed by @rismehta View on GitHub
answered
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.