jhiTranslate is present for Enum Type fields even when translation is disabled
See original GitHub issueOverview of the issue
Even though translations was disabled when creating jhipster project, still we get related attributes for entity field of enum type.
This is how my entity-dialog html file looks like:
<select class="form-control" name="companyType" [(ngModel)]="company.companyType" id="field_companyType" required> <option value="ATYPE" jhiTranslate="eachfitApp.CompanyType.ATYPE">ATYPE</option> <option value="BTYPE" jhiTranslate="eachfitApp.CompanyType.BTYPE">BTYPE</option> </select>
I have to latter manually remove these jhiTranslate attribute from html code.
JHipster Version(s)
4.0.7
JHipster configuration
{ “generator-jhipster”: { “jhipsterVersion”: “4.0.7”, “baseName”: “eachfit”, “packageName”: “com.eachfit”, “packageFolder”: “com/eachfit”, “serverPort”: “8080”, “authenticationType”: “jwt”, “hibernateCache”: “ehcache”, “clusteredHttpSession”: false, “websocket”: false, “databaseType”: “sql”, “devDatabaseType”: “h2Disk”, “prodDatabaseType”: “mysql”, “searchEngine”: false, “messageBroker”: false, “serviceDiscoveryType”: false, “buildTool”: “maven”, “enableSocialSignIn”: true, “jwtSecretKey”: “”, “clientFramework”: “angular2”, “useSass”: false, “clientPackageManager”: “yarn”, “applicationType”: “monolith”, “testFrameworks”: [], “jhiPrefix”: “jhi”, “enableTranslation”: false } }
- Checking this box is mandatory (this is just to show you read everything)
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (6 by maintainers)
Maybe it could be done globally by stripping them in copyTemplate
Hi, I retried it today morning and this issue is not occurring. I am not sure how I got this issue earlier. Thanks guys for looking into this and replying.