Headless API with possibility to return multiple translation values

thumbnail
Jamie Sammons, modificado hace 1 año. New Member Mensajes: 3 Fecha de incorporación: 2/09/20 Mensajes recientes

Currently there is a headless API to retreive the values for language keys. 

o/language/v1.0/messages?key=map&languageId=de_DE

The endpoint is currently limited to only one value which would mean that I need to make hundreds of requests for a single application if I want to use the liferay translations feature.

We need an endpoint where we can get multiple values with one single request, like: 

o/language/v1.0/messages?key=map&key=sort-by&key=install&languageId=de_DE

(just as example. maybe its better to pass the required keys as json body)

Also: it would be great if there was an endpoint which returns every single language value where the key starts with a specific string. This would enable to prefix the language keys like "application.xyz.sort" and "application.xyz.freeze" and request the values with a single request instead of passing all keys which are needed.

thumbnail
Jamie Sammons, modificado hace 1 año. Expert Mensajes: 367 Fecha de incorporación: 5/09/14 Mensajes recientes

Feature Request Created: https://liferay.atlassian.net/browse/LPD-52318