Investigate multi-language support for the Belga feed #124
Labels
No labels
bug
devops
duplicate
enhancement
good first issue
layout
next major release
next minor release
question
research
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lvl0/fedi-feed-router#124
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The Belga feed is English-only.
config/feed.phpdefines just anenentry underbelga.languages, andBelgaHomepageParserAdapteris pinned to English — it accepts a$languageconstructor argument (becauseHomepageParserFactory:29passes one positionally to every homepage parser) but deliberately ignores it when building the API url.Whether other languages are actually available is unverified. This ticket is the investigation.
Why it looks plausible
The
capi.belga.pressendpoint takes alanguage=query parameter, and its responsecontentobject is keyed by language code:That shape suggests other codes may be populated, but nothing has been tested beyond
EN.To investigate
newsroomId=70— tryNL,FR,DEcontentis actually populated or returns empty/duplicated English_meta.totaldiffers per language (a different corpus vs. the same one relabelled)https://www.belganewsagency.eu/press-releases/{id}/render in the requested language, and whetherBelgaArticlePageParserreads the rightog:title/og:descriptionfor themArticlerows are deduplicated onurl, and a shared id would collideIf viable
feed.providers.belga.languagesinconfig/feed.phpBelgaHomepageParserAdapter::getHomepageUrl()honour$languageinstead of pinning toenBelgaHomepageParserTest(atest_adapter_uppercases_language_in_api_urlcase existed and was removed when the url moved into config, precisely because it asserted a capability that was never verified)If not viable
Record the finding here and close — the current English-only pin is then correct as-is.
Notes