Giter VIP home page Giter VIP logo

doc-l10n-kit

Actions Status

doc-l10n-kit is a set of utilities to translate .asciidoc files.

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 doc-l10n-kit-runner.jar file in the build directory.

Configuration

place application.yml to <doc-l10n-kit working directory>/config/application.yml

application.yml

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

Execution

machine translate .po file

java -jar doc-l10n-kit-runner.jar po machine-translate --po=<po file path> --source=<source language> --target=<target language>

Apply translation memory to .po file

java -jar doc-l10n-kit-runner.jar po apply-tmx --tmx=<fmx file path> --po=<po file path>

Create a new glossary

java -jar doc-l10n-kit-runner.jar glossary create --name=<name> --source=<source language code> --target=<target language code> <glossary CSV file path>

list glossaries

java -jar doc-l10n-kit-runner.jar glossary list

Delete a glossary

java -jar doc-l10n-kit-runner.jar glossary delete --glossaryId=<glossary id>

doc-l10n-kit's Projects

po4a icon po4a

Maintain the translations of your documentation with ease (PO for anything)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.