Skip to main content

Translator for Paraglide JSONS based on DeepL API

Project description

Translator

Translator is a little, handy tool to manage the language files of a web application using based on paraglide. It uses a connection to DeepL API. In order to use the translator, You need at least a (free) account for the DeepL API. When You start up the translator for the first time, it will ask for the DeepL API access key (See DeepL documentation how to get it)

Usage of translator

After starting the translator app, You choose "OPEN" and select the directory where the language specific JSON files are located (.../messages/en.json, .../messages/de.json etc.). All the files will be read and displayed in a spreadsheet like manner.

JSON input

For preparing the JSON file (which consists of a "key" for the text and the translation), e.g. for german:

{
  "$schema": "https://inlang.com/schema/inlang-message-format",
  "hello_world": "Hello, {name} from de-ch!",
  "unkown_api_error": "Unbekannter API-Fehler ({num})!"
}

If a key is not existing in a file, the corresponding field will be filled with the key as "translated" value. The translation may be entered by hand, or You can choose the base language and perform an automatic translation based ön DeepL.

Saving

Before saving, the "old" files are backuped with a name .XXX.json, where XXX is a number 001, 002, 003, ...

The purge button removes all the backup files (for cleaning up).

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

paraglidetranslator-0.1.1.tar.gz (88.5 kB view details)

Uploaded Source

Built Distribution

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

paraglidetranslator-0.1.1-py3-none-any.whl (89.1 kB view details)

Uploaded Python 3

File details

Details for the file paraglidetranslator-0.1.1.tar.gz.

File metadata

  • Download URL: paraglidetranslator-0.1.1.tar.gz
  • Upload date:
  • Size: 88.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.11 Darwin/24.6.0

File hashes

Hashes for paraglidetranslator-0.1.1.tar.gz
Algorithm Hash digest
SHA256 bc9f2a4821f04338cb4b19b5756e75929c3e2169d84c4cb3088ba386c7449d04
MD5 037987e4647c8081e005f3d8bc913f5f
BLAKE2b-256 8c3d392001084c69e8ef67a643ecb96a44d5425bf0d01351146591f1bf5d5d8e

See more details on using hashes here.

File details

Details for the file paraglidetranslator-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for paraglidetranslator-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 87463d07fdfea3b3b18aecf8093443d4f2714fa658f2005b2c98cfce5ad11f6b
MD5 d978afdf3256f5406d18e31d22268b12
BLAKE2b-256 e6cb8adf2db534e591322701d1254d1953b1211c4c610d0a76fefa330f3e8a63

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