Skip to content

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

@shravanthprasad

Description

@shravanthprasad

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

const _langData = await HTTPAPILayer.getJson(url);

Logs taken while reproducing problem

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions