generator-jhipster: translation-not-found[error.url.not.found] in gateway on every page

Just generated JHipster 5.0.0 gateway application and run with docker-compose. On every page I get translation-not-found[error.url.not.found], but translations seems working. I have 2 langs: en and ru.

2018-06-23 13 31 08

yo-rc.json:

{
  "generator-jhipster": {
    "promptValues": {
      "packageName": "io.tiketer.gateway",
      "nativeLanguage": "en"
    },
    "jhipsterVersion": "5.0.0",
    "applicationType": "gateway",
    "baseName": "gateway",
    "packageName": "io.tiketer.gateway",
    "packageFolder": "io/tiketer/gateway",
    "serverPort": "8080",
    "authenticationType": "uaa",
    "uaaBaseName": "uaa",
    "cacheProvider": "hazelcast",
    "enableHibernateCache": true,
    "websocket": false,
    "databaseType": "sql",
    "devDatabaseType": "h2Memory",
    "prodDatabaseType": "postgresql",
    "searchEngine": false,
    "messageBroker": false,
    "serviceDiscoveryType": "eureka",
    "buildTool": "gradle",
    "enableSwaggerCodegen": false,
    "clientFramework": "react",
    "useSass": false,
    "clientPackageManager": "yarn",
    "testFrameworks": [],
    "jhiPrefix": "jhi",
    "enableTranslation": true,
    "nativeLanguage": "en",
    "languages": [
      "en",
      "ru"
    ]
  }
}

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 24 (16 by maintainers)

Most upvoted comments

@agaspardcilia since you already did some i18n fix can you check bif that fixed this as well?

@binakot you have 2 issues.

  1. There is something going wrong which throws an error(You need to figure this out by examing the stack trace at the backend as well in the browser console, maybe an API request failed)
  2. When the error is thrown the translation mechanism tries to translate the key error.url.not.found, which means it expects a file named error.json in your src/main/webapp/i18n/en and src/main/webapp/i18n/ru directory with value for key error.url.not.found

So please try to figure out what is missing here and report back