bcgov / orgbook-bc-client-angular

Angular application for OrgBook BC
Apache License 2.0
0 stars 5 forks source link

Fixes an issue where names for Credential types are prefixed with `'name.'` #27

Closed amanji closed 3 years ago

amanji commented 3 years ago

In the Advanced Search dropdown list for Credential types, a prefix is appended to names that need to be translated directly from local i18n files. In general, localized Credential type names are specified in service configurations themselves and do not have i18n translations. Therefore, prefixing these names will not return a valid translation.

This fix will attempt to translate a formatted key from the local i18n translations first. If there is no local translation, then it is assumed that the localized names are specified in the service configuration and the original key is returned and displayed.