Ask - Test
Headless API with possibility to return multiple translation values
Headless API with possibility to return multiple translation values
New Member Posts: 3 Join Date: 9/2/20 Recent PostsCurrently 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.
RE: Headless API with possibility to return multiple translation values
Expert Posts: 367 Join Date: 9/5/14 Recent PostsFeature Request Created: https://liferay.atlassian.net/browse/LPD-52318
Powered by Liferay™