A Webtools Laco service that provides information on whether entity has a translation in a specific language.
This module exposes a new route for each entity type that "mirrors" the canonical route of entities. These routes have the same paths as the canonical entity routes but use different requirements for matching. If these requirements are matched in the request, the module will return Laco information for that entity.
Enable the module.
Create a node (or entity of a type which exposes a canonical path, such as node/1
).
Make a request to this path with the following specifications:
- Request method:
HEAD
. EC-Requester-Service
header with the valueWEBTOOLS LACO
.EC-LACO-lang
header with the value of the language code you want coverage information for.
Interpret the response:
200 OK
-> there is a translation for this entity in the requested language404 Not found
-> there is no translation for this entity (or the entity is missing)403 Forbidden
-> access is denied to that resource