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

German Administration for Metrics wonky due to locale error #24985

Closed
1 task done
timothystone-knsl opened this issue Jan 28, 2024 · 6 comments
Closed
1 task done

German Administration for Metrics wonky due to locale error #24985

timothystone-knsl opened this issue Jan 28, 2024 · 6 comments

Comments

@timothystone-knsl
Copy link
Contributor

timothystone-knsl commented Jan 28, 2024

Overview of the issue

When generating a new application and selecting German, de, for native internationalization support, the Administration > Metrics (Anwendungs-Metriken) page goes "wonky." The error shown below is reported in the Developer console.

Error: NG02100: InvalidPipeArgument: 'NG0701: Missing locale data for the locale "de".' for pipe 'DecimalPipe'
    at invalidPipeArgumentError (common.mjs:4021:12)
    at DecimalPipe.transform (common.mjs:4819:19)
    at pureFunction2Internal (core.mjs:27550:65)
    at Module.ɵɵpipeBind2 (core.mjs:27771:9)
    at JvmMemoryComponent_Conditional_3_For_4_Conditional_3_Template (jvm-memory.component.html:10:13)
    at executeTemplate (core.mjs:12158:9)
    at refreshView (core.mjs:13390:13)
    at detectChangesInView (core.mjs:13615:9)
    at detectChangesInViewIfAttached (core.mjs:13578:5)
    at detectChangesInEmbeddedViews (core.mjs:13535:13)
Motivation for or Use Case

German should be supported identically as others in I18N.

Reproduce the error
jhipster
...
...
select German as NATIVE and optionally add others
Related issues

None identified.

Suggest a Fix

The console error points to the metrics.component.ts then references the jvm-memory.component.html (see error above).

Something here dislikes de (German).

JHipster Version(s)
JHipster configuration

Info

[email protected] /private/tmp/de-en
└── [email protected]
JHipster configuration, a .yo-rc.json file generated in the root folder
.yo-rc.json file
{
  "generator-jhipster": {
    "applicationType": "monolith",
    "authenticationType": "jwt",
    "baseName": "deEn",
    "buildTool": "maven",
    "cacheProvider": "ehcache",
    "clientFramework": "angular",
    "clientTestFrameworks": [
      "cypress"
    ],
    "clientTheme": "slate",
    "clientThemeVariant": "primary",
    "creationTimestamp": 1706409847503,
    "cypressAudit": true,
    "cypressCoverage": true,
    "databaseType": "sql",
    "devDatabaseType": "h2Disk",
    "devServerPort": 4200,
    "enableGradleEnterprise": null,
    "enableHibernateCache": true,
    "enableSwaggerCodegen": false,
    "enableTranslation": true,
    "entities": [],
    "feignClient": false,
    "gradleEnterpriseHost": null,
    "jhipsterVersion": "8.1.0",
    "languages": [
      "de",
      "en"
    ],
    "messageBroker": false,
    "microfrontend": null,
    "microfrontends": [],
    "nativeLanguage": "de",
    "packageName": "com.mycompany.myapp",
    "prodDatabaseType": "postgresql",
    "reactive": false,
    "searchEngine": false,
    "serverPort": null,
    "serverSideOptions": [],
    "serviceDiscoveryType": false,
    "testFrameworks": [
      "gatling",
      "cucumber",
      "cypress"
    ],
    "websocket": false,
    "withAdminUi": true
  }
}
Environment and Tools

openjdk version "17.0.8.1" 2023-08-24
OpenJDK Runtime Environment Temurin-17.0.8.1+1 (build 17.0.8.1+1)
OpenJDK 64-Bit Server VM Temurin-17.0.8.1+1 (build 17.0.8.1+1, mixed mode)

git version 2.39.3 (Apple Git-145)

node: v18.19.0
npm: 10.2.3

Docker version 24.0.7, build afdd53b

Entity configuration(s) entityName.json files generated in the .jhipster directory

None.

Browsers and Operating System

macOS 14.3
Chrome 121

  • Checking this box is mandatory (this is just to show you read everything)
@timothystone-knsl timothystone-knsl changed the title German Administration for Metrics wonky due to translation error German Administration for Metrics wonky due to locale error Jan 28, 2024
Copy link
Contributor

github-actions bot commented Jan 28, 2024

JHipster has completed the sample check
.yo-rc.json: valid
Entities JDL:
Application: successfully generated
Frontend check: success
Backend check: success
E2E check: success

This check uses jhipster info output from the issue description to generate the sample.
Bug report that does not contain this information will be marked as invalid.

@qmonmert
Copy link
Contributor

Not reproduced on the main branch

@timothystone-knsl
Copy link
Contributor Author

Not reproduced on the main branch

Suggesting that something is fixed on the main branch or something else?

@mshima
Copy link
Member

mshima commented Jan 29, 2024

It’s fixed by #24630

@timothystone-knsl
Copy link
Contributor Author

Thank @mshima . I'll close.

@qmonmert
Copy link
Contributor

thanks @mshima it's me which fixed it ^^

@deepu105 deepu105 added this to the 8.2.0 milestone Mar 20, 2024
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

4 participants