Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vue Translation = false Doesn't work #24360

Closed
1 task done
oopsaleem opened this issue Nov 24, 2023 · 2 comments
Closed
1 task done

Vue Translation = false Doesn't work #24360

oopsaleem opened this issue Nov 24, 2023 · 2 comments

Comments

@oopsaleem
Copy link

Overview of the issue

Using the below configurations, I have generated a monolith application using the vue clientFramework. All is working fine.
When I use jhipster entity MyEntityName to generate a new entity, I found that .vue files generated contain tags like below:
Translation missing for entity.action.cancel
Translation missing for entity.action.save
...etc

Motivation for or Use Case

Even if I opt not to activate i18n, every .vue file for each newly generated entity contains tags:
Translation missing for entity.action.cancel
Translation missing for entity.action.save
... etc

Reproduce the error

Would you like to enable internationalization support? No
Please choose the native language of the application English
Please choose additional languages to install This option shouldn't appear.

Related issues

#24204

Suggest a Fix

No idea.

JHipster Version(s)

8.0.0

JHipster configuration, a .yo-rc.json file generated in the root folder
.yo-rc.json file
{
  "generator-jhipster": {
    "applicationType": "monolith",
    "authenticationType": "jwt",
    "baseName": "myapp",
    "buildTool": "maven",
    "cacheProvider": "ehcache",
    "clientFramework": "vue",
    "clientTestFrameworks": [
      "cypress"
    ],
    "clientTheme": "none",
    "creationTimestamp": 1700859185390,
    "cypressAudit": true,
    "cypressCoverage": null,
    "databaseType": "mongodb",
    "devDatabaseType": "mongodb",
    "devServerPort": 9060,
    "enableGradleEnterprise": null,
    "enableHibernateCache": false,
    "enableSwaggerCodegen": false,
    "enableTranslation": false,
    "entities": [],
    "gradleEnterpriseHost": null,
    "jhipsterVersion": "8.0.0",
    "messageBroker": false,
    "microfrontend": null,
    "microfrontends": [],
    "nativeLanguage": "en",
    "packageName": "com.mycompany.myapp",
    "prodDatabaseType": "mongodb",
    "reactive": false,
    "searchEngine": false,
    "serverPort": null,
    "serverSideOptions": [
      "websocket:spring-websocket"
    ],
    "serviceDiscoveryType": false,
    "testFrameworks": [
      "gatling",
      "cypress"
    ],
    "websocket": "spring-websocket",
    "withAdminUi": true
  }
}
Environment and Tools

openjdk version "21.0.1" 2023-10-17 LTS
OpenJDK Runtime Environment Microsoft-8526870 (build 21.0.1+12-LTS)
OpenJDK 64-Bit Server VM Microsoft-8526870 (build 21.0.1+12-LTS, mixed mode, sharing)

git version 2.33.0

node: v20.10.0
npm: 10.2.3

Docker version 24.0.6, build ed223bc

JDL for the Entity configuration(s) Emp.json files generated in the .jhipster directory
JDL entity definitions
{
  "applications": "*",
  "changelogDate": "20230331001043",
  "dto": "mapstruct",
  "embedded": false,
  "entityTableName": "emp",
  "fields": [
    {
      "fieldName": "firstName",
      "fieldType": "String"
    },
    {
      "fieldName": "lastName",
      "fieldType": "String"
    }
  ],
  "fluentMethods": true,
  "name": "Emp",
  "pagination": "no",
  "readOnly": false,
  "relationships": [],
  "searchEngine": "no",
  "service": "serviceClass"
}
Browsers and Operating System

Mac OSX 14.1.1
Safary
Chrome
Firefox

  • Checking this box is mandatory (this is just to show you read everything)
@mshima
Copy link
Member

mshima commented Nov 29, 2023

Should be fixed with #24204.
If you manage to reproduce using git main, please let me know.

@mshima mshima closed this as completed Nov 29, 2023
@oopsaleem
Copy link
Author

oopsaleem commented Nov 30, 2023

Hi @mshima
Thank you for your response.
To reproduce after generating the app follow the steps as below:
I run the command jhipster entity Dept to create a new entity Dept
Then you will see the problem of WARNING! Translation missing for entity.action.back.
I have created a repo to reproduce the issue
Refer to the screenshot.
Screenshot 2023-11-30 at 12 47 16 PM

@deepu105 deepu105 added this to the 8.1.0 milestone Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants