Skip to main content

CLI for POFile.io

An easy-to-use CLI tool for translating PO files with POFile.io.

Description

This CLI tool automatically locates .po files in your project and fills in missing translations using the POFile.io API service. It's designed to streamline the process of managing translations in software projects.

Getting Started

Prerequisites

  • Python 3.7 or later

Installation

  1. Activate your project's virtual environment.

  2. Install the CLI with:

    pip install pofile-cli
    

    This will make the pofile command available.

  3. Create an account at POFile.io, log in, and copy your API key from the dashboard.

  4. Set your API key by exporting it as an environment variable (recommended) or passing it directly with each command:

    export POFILE_API_KEY=<your_api_key>
    

Usage

To populate all .po files in the current project with translations, use:

pofile populate

Additional Options

Specify a Directory: To search for .po files in a specific directory, provide the path:

pofile populate <directory>

Set Maximum Directory Depth: Control how deep the tool searches within nested directories:

pofile populate --dir-depth <depth>

Skip Confirmation Prompt: Automatically proceed without a confirmation prompt:

pofile populate -y

Use an API Key Directly: If you prefer not to use an environment variable, you can specify your API key:

pofile populate --api-key <your_api_key>

Version History

  • 0.1
    • Initial Release

License

This project is licensed under the MIT License - see the LICENSE file for details.

Release files for pofile-cli 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pofile-cli 0.1.0
File Size Uploaded
pofile_cli-0.1.0.tar.gz 6.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pofile-cli 0.1.0
File Interpreter ABI Platform
pofile_cli-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 14.3 kB

Release files / pofile_cli-0.1.0.tar.gz

Download URL pofile_cli-0.1.0.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
fd9d72069c2cd2b2a9e71e29b4c72fe8fff7b2d2102a0913d580a7d10abbf154
BLAKE2b-256 checksum
How to use checksums
7a31100d57a75b3349d82451db4ff986bde2100a6516f6e6ce288eeb39dd5b95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.5

Release files / pofile_cli-0.1.0-py3-none-any.whl

Download URL pofile_cli-0.1.0-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f88493178724ed709e3d1a5c03e987f352b126e7f20578daa04efdb3af0020d2
BLAKE2b-256 checksum
How to use checksums
baac9d1ec9df257d30ffa85969393192fa025d85d40dc6a6e2cd7dc1b0a3c330
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.5

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page