Skip to main content

Add your description here

Project description

TranslaTools

A toolset of translating Minecraft modpacks.

Currently working in progress.

Usage

Start a new translation project

a) Download CurseForge Modpack

translatools init {curseforge_project_id}

Using the command to initialize the project in the current directory. The directory must be empty.

You need to add CF_API_KEY to the environment variable, or passing it as an argument --api-key {the_key}.

When the downloading is complete, you need to edit the config.json file, fill the paratranz_id. And there's a flaw in the current version that _cwd is also exported to the config file, you can remove it.

b) Add Configuration to existing modpack directory

Create a file, config.json preferred.

{
  // CurseForge project ID
  "project_id": 345678,
  // Paratranz project ID
  "paratranz_id": 67890,
  // The CurseForge file ID, or 0 if you don't know
  // It's used for updating the files from the latest version. Not implemented yet.
  "current_version_id": 1234567,
  // deprecated!
  "tracked_json_paths": [],
  // deprecated!
  "tracked_lang_paths": [],
  // deprecated!
  "ftbquests": false,
  // tracked files with their type.
  "tracked_files": [
    {
      // the path to the file, or the glob to match all the files.
      // See glob: https://en.wikipedia.org/wiki/Glob_(programming)
      "path": "overrides/kubejs/assets/**/lang/en_us.json",
      // the type of the files.
      // it determines how the app treat these files.
      // supported types:
      // - "json_kv": the JSON files where the root is an object, which it only contains string values.
      // - "lang_kv": the regular Minecraft .lang files
      // - "ftbquests_chapter": the SNBT file of Chapter definition of FTB Quests
      "type": "json_kv"
    }
  ]
}

Fill in these fields, and remove the comments, because they're not supported in standard JSON.

Upload to Paratranz

translatools sync2paratranz

Like initialization, you need to add PARATRANZ_API_KEY to the environment variable, or passing it as an argument --api-key {the_key}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

translatools-0.2.0.tar.gz (17.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

translatools-0.2.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file translatools-0.2.0.tar.gz.

File metadata

  • Download URL: translatools-0.2.0.tar.gz
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.20

File hashes

Hashes for translatools-0.2.0.tar.gz
Algorithm Hash digest
SHA256 75826d656dcb411eb197e89b3fb51ce3439359d79b374e8a6ff72146e9f51707
MD5 e7ad39e9e806058fc2137b6e280330cb
BLAKE2b-256 7f39bf2b797ea02d3efd66f6bc5a273ae347dc3eb2803f287987c58d6e037b13

See more details on using hashes here.

File details

Details for the file translatools-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for translatools-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a8d6d2ab34c0f1f43acd70ced62fe2503221056c4beeab85b07a77a96410b4f4
MD5 7ba81a44c6f896d8adfc871f7ad7c92a
BLAKE2b-256 dfdcc5f887661fcef9b9c499031fb812d9e7fadd314211406d22244b7a7d7f9d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page