dhis2-devs-core team mailing list archive
-
dhis2-devs-core team
-
Mailing list archive
-
Message #00255
Translation in the Web-API
Hi everyone
DB Translation is now supported in the Web-API.
Two new parameters were added to the web-api:
translate=true/false Translates using default user locale
locale=locale-tag Translate using a specified locale (great
for testing etc, implies translate=true)
I have exposed all display* properties:
displayName
displayShortName
displayDescription
displayFormName
So these should be used instead of name, shortName etc.
For now, two endpoints supports translation:
/api/type
/api/type/id
I will add support for more endpoints very soon, please report back if you
find any issues
--
Morten