Description
When querying content by key using getItems(), the lookup appears to require an exact language match.
If content does not exist in the requested locale but a language fallback is configured in CMS, getItems() returns no items.
await client.getItems({
key,
locale: "en-PH",
});
Expected behavior
getItems() should resolve configured language fallbacks when looking up content by key.
If no content exists for the requested locale, but a fallback language is configured, the fallback content should be returned instead of an empty result.
Actual behavior
getItems() returns no items when the requested locale does not have its own language version, even though a fallback language is configured.
Description
When querying content by key using
getItems(), the lookup appears to require an exact language match.If content does not exist in the requested locale but a language fallback is configured in CMS,
getItems()returns no items.Expected behavior
getItems()should resolve configured language fallbacks when looking up content by key.If no content exists for the requested locale, but a fallback language is configured, the fallback content should be returned instead of an empty result.
Actual behavior
getItems()returns no items when the requested locale does not have its own language version, even though a fallback language is configured.