Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Headless API with possibility to return multiple translation values
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.
Feature Request Created: https://liferay.atlassian.net/browse/LPD-52318
Powered by Liferay™