nametemplate API does not apply locale translations to the displayText values
Description
Follow on from .
I have found that the nameMapping values - and consequently the displayText values of the ‘lines' property do not have locale translations applied. They are always returned with the names of the message properties, e.g. ‘personName.givenName’, 'personName.middleName’, etc.
For example, GET /openmrs/ws/rest/v1/nametemplate/short returns:
This impacts the suitability of this API for use in the O3 frontend; see code review comments for
Follow on from .
I have found that the
nameMapping
values - and consequently thedisplayText
values of the ‘lines' property do not have locale translations applied. They are always returned with the names of the message properties, e.g. ‘personName.givenName’, 'personName.middleName’, etc.For example, GET /openmrs/ws/rest/v1/nametemplate/short returns:
This impacts the suitability of this API for use in the O3 frontend; see code review comments for