Problem/Motivation

The module (and core #3199697: Add JSON:API Translation experimental module issue, which it polyfills) only applies the translation contract ?langCode= query param and Accept-Language / Content-Language headers to individual resources.

Collection requests (/jsonapi/node/article) ignore language entirely and always return default-language entities. A decoupled client reading a list gets untranslated items even though the same request against each item individually would translate correctly.

Steps to reproduce

Proposed resolution

Extend the same contract to collections.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

lauriii created an issue. See original summary.

  • lauriii committed 9b7884b5 on 1.0.x
    feat: #3612345 Translate collection GETs per item (langCode / Accept-...
lauriii’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.