diff --git a/packages/cli/src/extract.ts b/packages/cli/src/extract.ts index 66ac060f4..9c2f748a8 100644 --- a/packages/cli/src/extract.ts +++ b/packages/cli/src/extract.ts @@ -80,7 +80,7 @@ export async function extract( resourcePath: 'dummy', } as any, idInterpolationPattern, - {content: `${defaultMessage}#${description}`} + {content: defaultMessage + (description ? '#' + description : '')} ), }; }