Headless API with possibility to return multiple translation values

thumbnail
Jamie Sammons,修改在1 年前。 New Member 帖子: 3 加入日期: 20-9-2 最近的帖子

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,修改在1 年前。 Expert 帖子: 367 加入日期: 14-9-5 最近的帖子

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