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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc9f2a4821f04338cb4b19b5756e75929c3e2169d84c4cb3088ba386c7449d04
|
|
| MD5 |
037987e4647c8081e005f3d8bc913f5f
|
|
| BLAKE2b-256 |
8c3d392001084c69e8ef67a643ecb96a44d5425bf0d01351146591f1bf5d5d8e
|
File details
Details for the file paraglidetranslator-0.1.1-py3-none-any.whl.
File metadata
- Download URL: paraglidetranslator-0.1.1-py3-none-any.whl
- Upload date:
- Size: 89.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.11 Darwin/24.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87463d07fdfea3b3b18aecf8093443d4f2714fa658f2005b2c98cfce5ad11f6b
|
|
| MD5 |
d978afdf3256f5406d18e31d22268b12
|
|
| BLAKE2b-256 |
e6cb8adf2db534e591322701d1254d1953b1211c4c610d0a76fefa330f3e8a63
|