Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Latest commit

 

History

History
53 lines (34 loc) · 1.41 KB

README.md

File metadata and controls

53 lines (34 loc) · 1.41 KB

quarkus-adoc-po-translator

moved to https://github.com/doc-l10n-kit/doc-l10n-kit

Actions Status

quarkus-adoc-po-translator is an utility to translate .adoc.po files extracted from quarkus documentations asciidoctor files by po4a.

This project uses Quarkus, the Supersonic Subatomic Java Framework. If you want to learn more about Quarkus, please visit its website: https://quarkus.io/ .

Build

Prerequisites

  • JDK 11
  • GraalVM (If you want to build a native image directly)
  • Docker or Podman (If you want to build a native image in a container)

Creating an uber-jar

The application can be packaged using following command:

./gradlew quarkusBuild -Dquarkus.package.type=uber-jar

It produces the quarkus-adoc-po-translator-runner.jar file in the build directory.

Configuration

place application.yml to <quarkus-adoc-po-translator working directory>/config/application.yml

application.yml

translator:
  deepL:
    apiKey: <put your api key here>
  language:
    source: en        # default source language
    destination: ja   # default destination language

Execution

uber-jar

java -jar quarkus-adoc-po-translator.jar [<path to source po file>...] \
[--srcLang <source language>] [--dstLang <destination language>]