This application use AI to translate Core Quarkus Dev UI to a selected language/locale
The application can be packaged using:
./mvnw packageIt produces the quarkus-run.jar file in the target/quarkus-app/ directory.
Be aware that it’s not an über-jar as the dependencies are copied into the target/quarkus-app/lib/ directory.
The application is now runnable using java -jar target/quarkus-app/quarkus-run.jar.
If you want to build an über-jar, execute the following command:
./mvnw package -Dquarkus.package.jar.type=uber-jarThe application, packaged as an über-jar, is now runnable using java -jar target/*-runner.jar.
- Build the app:
./mvnw package - Run the CLI:
java -jar target/quarkus-app/quarkus-run.jar translate - When prompted, enter:
- Quarkus source path (e.g.
/path/to/quarkus/extensions) - Target language:
French - Optional country codes (comma separated) to add dialect files, or press Enter to skip (e.g.
CA,BE)
- Quarkus source path (e.g.
- The command will create
fr.jsunder eachi18nfolder so the locales show up in Dev UI. If you defined any optional country codes (for dialects) those will show up asfr-CA.jsfor example.
- Start dev mode:
./mvnw quarkus:dev - Open Dev UI at http://localhost:8080/q/dev and open the Config Editor.
- Search for
quarkus.langchain4j.openai.api-keyand paste your OpenAI key. - Save; Quarkus will hot-reload and the key will be used by the translator. Prefer env vars outside dev:
QUARKUS_LANGCHAIN4J_OPENAI_API_KEY=....