diff --git a/generators/angular/support/translate-angular.ts b/generators/angular/support/translate-angular.ts index 34a4d66f7d32..f4ae58be1470 100644 --- a/generators/angular/support/translate-angular.ts +++ b/generators/angular/support/translate-angular.ts @@ -249,7 +249,7 @@ const pipeEnumTranslation = ( } const { value, fallback } = parsedInterpolate; if (enableTranslation) { - return `${prefix}{{ \`${key}.\${value}\` | translate }}${suffix}`; + return `${prefix}{{ '${key}.' + ${value} | translate }}${suffix}`; } const translatedValue = `{{ ${JSON.stringify(getTranslationValue(getWebappTranslation, key))}[${value}]${fallback ? ` ?? ${fallback}` : ''} }}`; diff --git a/generators/angular/templates/src/main/webapp/app/entities/_entityFolder_/delete/_entityFile_-delete-dialog.component.html.ejs b/generators/angular/templates/src/main/webapp/app/entities/_entityFolder_/delete/_entityFile_-delete-dialog.component.html.ejs index 449deea10583..4f547b4d9cad 100644 --- a/generators/angular/templates/src/main/webapp/app/entities/_entityFolder_/delete/_entityFile_-delete-dialog.component.html.ejs +++ b/generators/angular/templates/src/main/webapp/app/entities/_entityFolder_/delete/_entityFile_-delete-dialog.component.html.ejs @@ -19,7 +19,7 @@ @if (<%= entityInstance %>) {