In a React app without i18n support, texts disappear during the initial entity generation. #23939
Closed
1 task done
Labels
Milestone
Overview of the issue
Due to this, the text disappears.
![disappeared](https://private-user-images.githubusercontent.com/3602892/277119498-7e288d05-d925-426f-92a8-0e93c440b3e1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4NDE1MTYsIm5iZiI6MTczODg0MTIxNiwicGF0aCI6Ii8zNjAyODkyLzI3NzExOTQ5OC03ZTI4OGQwNS1kOTI1LTQyNmYtOTJhOC0wZTkzYzQ0MGIzZTEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDZUMTEyNjU2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OTFhYWI2ZmE1ZGVhNTVjZTAzOTFmZjYwYzJlMDRkZTY5NTM2ZjU1NmUxYjQ4OGVlMWMwYzkxNjMwN2VhNzRiNCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.NLFFUWA1yCfbdJk6mwIR-Blo9g79jNf1-WgDhGEfLGc)
Upon regenerating, it appears.
Motivation for or Use Case
Reproduce the error
See above.
Related issues
Suggest a Fix
The translateReactFilesTransform function, which disables the import, function, and tag of translation processing, is executed in get [BaseApplicationGenerator.WRITING](). However, it does not execute in get [BaseApplicationGenerator.WRITING_ENTITIES]().
In v8, when executing
jhipster jdl
, I assumed it would only structure the.jhipster
directory. But now, it also generates code, similar to v7. I'm not sure which behavior is expected, but I believe it might be related.I attempted to fix it by calling queueTranslateTransform from
get [BaseApplicationGenerator.WRITING]()
, but it failed. The TranslationData did not store enough values, resulting in incorrect translations, like the labels of buttons not being translated.(Analyzing the dependency of the execution generation order is challenging for me. I'd like to know a better way to understand it. 😭)
JHipster Version(s)
8.0.0-rc.1
JHipster configuration, a
.yo-rc.json
file generated in the root folder.yo-rc.json file
Environment and Tools
openjdk version "17.0.8" 2023-07-18
OpenJDK Runtime Environment GraalVM CE 22.3.3 (build 17.0.8+7-jvmci-22.3-b22)
OpenJDK 64-Bit Server VM GraalVM CE 22.3.3 (build 17.0.8+7-jvmci-22.3-b22, mixed mode, sharing)
git version 2.39.3 (Apple Git-145)
node: v18.17.1
npm: 9.6.7
Docker version 24.0.6, build ed223bc
JDL for the Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryJDL entity definitions
Browsers and Operating System
The text was updated successfully, but these errors were encountered: