If you change the translation of a country name and select that as the place of birth for an individual, the translation is not reflected in the certificate. In this example I changed “Finland” to “RikuPyryLand” :-D. The cert still says “Finland”.
I think that this could affect country translations in other places in the front end where I see countries imported like this and not used with intl.
import { countries } from '@client/utils/countries'
Its minor for births I think, but for deaths, if you wanted to show place of birth of deceased and have it translated, we would have a translation problem.
Which feature of OpenCRVS your bug concern?
Certification
To Reproduce
Steps to reproduce the behaviour:
Change a country translation in client.csv
Register a birth and select place of birth to be the renamed country
Download and print certificate
Notice that the core hardcoded translation is used for the country name on the cert
Expected behaviour
The translated copy from client.csv should be used for country name on the cert
Description:
If you change the translation of a country name and select that as the place of birth for an individual, the translation is not reflected in the certificate. In this example I changed “Finland” to “RikuPyryLand” :-D. The cert still says “Finland”.
Notice the cert still says "Finland":
This is because we dont pass intl to the eventLocationAddressFHIRPropertyTemplateTransformer and then the setAddressPropFromFHIRProp function.
I think that this could affect country translations in other places in the front end where I see countries imported like this and not used with intl.
Its minor for births I think, but for deaths, if you wanted to show place of birth of deceased and have it translated, we would have a translation problem.
Which feature of OpenCRVS your bug concern?
Certification
To Reproduce Steps to reproduce the behaviour:
Expected behaviour The translated copy from client.csv should be used for country name on the cert
OpenCRVS Core Version:
v1.4.1