From 0e7cc510fde12bec5fb8ab93fe68454c2a7d27b0 Mon Sep 17 00:00:00 2001 From: Siyasanga Date: Tue, 22 Oct 2024 09:42:00 +0200 Subject: [PATCH] Add humanName to constants.ts To allow countries to have custom ordering for full names https://github.com/opencrvs/opencrvs-core/issues/6830 --- packages/client/src/i18n/messages/constants.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/client/src/i18n/messages/constants.ts b/packages/client/src/i18n/messages/constants.ts index 58101a09a2c..38957df0d13 100644 --- a/packages/client/src/i18n/messages/constants.ts +++ b/packages/client/src/i18n/messages/constants.ts @@ -163,6 +163,7 @@ interface IConstantsMessages refresh: MessageDescriptor duplicateOf: MessageDescriptor matchedTo: MessageDescriptor + humanName: MessageDescriptor } const messagesToDefine: IConstantsMessages = { action: { @@ -978,6 +979,11 @@ const messagesToDefine: IConstantsMessages = { defaultMessage: `{registrationTargetDays} days - 1 year`, description: `Label for registrations within {registrationTargetDays} days to 1 year`, id: 'constants.withinTargetDaysTo1Year' + }, + humanName: { + defaultMessage: `{lastName} {middleName} {firstName}`, + description: 'A localized order of the full name', + id: 'constants.humanName' } } export const constantsMessages: Record<