Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima authored Apr 1, 2024
1 parent d4ccf69 commit ddd7502
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generators/angular/support/translate-angular.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ const tagEnumTranslation = (
throw new Error(`Value is required for TagEnum ${key}.`);
}
const { value, fallback } = parsedInterpolate;
const translatedValue = `{{ ${JSON.stringify(getTranslationValue(getWebappTranslation, key))}[${value}]${fallback ? ` ?? ${fallback}` : ''} }}`;
const translatedValue = `{{ ${JSON.stringify(getTranslationValue(getWebappTranslation, key))}[${value}]${fallback ? ` || ${fallback}` : ''} }}`;
if (enableTranslation) {
return ` [${jhiPrefix}Translate]="'${key}.' + (${parsedInterpolate?.value})"${prefix}${translatedValue}${suffix}`;
}
Expand Down

0 comments on commit ddd7502

Please sign in to comment.