-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
EhsanAzish80 edited this page Dec 15, 2025
·
1 revision
Complete installation instructions for auto-translate-localizables.
- Python: 3.7 or higher
- pip: Package installer for Python
- Operating System: macOS, Linux, or Windows
When published to PyPI:
pip install auto-translate-localizablesVerify installation:
auto-translate-xcloc --version
# Output: auto-translate-xcloc 1.0.0# Clone the repository
git clone https://github.com/EhsanAzish80/Auto-Translate-localizables.git
cd Auto-Translate-localizables
# Install in editable mode
pip install -e .# Download and extract the latest release
wget https://github.com/EhsanAzish80/Auto-Translate-localizables/archive/refs/tags/v1.0.0.tar.gz
tar -xzf v1.0.0.tar.gz
cd Auto-Translate-localizables-1.0.0
# Install
pip install .# Install Python (if needed)
brew install python3
# Install package
pip3 install auto-translate-localizables
# Add to PATH (if needed)
export PATH="$HOME/Library/Python/3.11/bin:$PATH"
# Verify
auto-translate-xcloc --version# Install Python and pip
sudo apt update
sudo apt install python3 python3-pip
# Install package
pip3 install auto-translate-localizables
# Add to PATH (if needed)
export PATH="$HOME/.local/bin:$PATH"
# Verify
auto-translate-xcloc --version# Install Python and pip
sudo dnf install python3 python3-pip
# Install package
pip3 install auto-translate-localizables
# Verify
auto-translate-xcloc --version# Install Python from python.org
# Then install package
pip install auto-translate-localizables
# Verify
auto-translate-xcloc --versionFor contributors or advanced users:
# Clone repository
git clone https://github.com/EhsanAzish80/Auto-Translate-localizables.git
cd Auto-Translate-localizables
# Install in editable mode with dev dependencies
pip install -e ".[dev]"
# Or use the install script
./install_dev.shauto-translate-xcloc --version
# Expected: auto-translate-xcloc 1.0.0
auto-translate-xcloc --help
# Should show help textpython3 -c "from auto_translate_localizables import XLIFFTranslator; print('✓ Import successful')"
# Expected: ✓ Import successfulBoth commands should work:
auto-translate-xcloc --version
xcloc-translate --versionThe package automatically installs these dependencies:
-
deep-translator>=1.11.4- Translation API wrapper -
lxml>=4.9.0- XML/XLIFF processing
-
tkinter- Usually included with Python
-
pytest>=7.0- Testing -
black>=22.0- Code formatting -
mypy>=0.950- Type checking
If auto-translate-xcloc is not found after installation:
macOS/Linux:
# Find where pip installed scripts
python3 -m pip show auto-translate-localizables
# Add to PATH
export PATH="$HOME/.local/bin:$PATH"
# Or for macOS:
export PATH="$HOME/Library/Python/3.11/bin:$PATH"
# Make permanent by adding to ~/.bashrc or ~/.zshrc
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrcWindows:
# Add Python Scripts to PATH via System Environment Variables
# Or use Python module syntax:
python -m auto_translate_localizables.cli --helpIf you get import errors:
# Reinstall dependencies
pip install -r requirements.txt --force-reinstall
# Or reinstall the package
pip install --force-reinstall auto-translate-localizablesmacOS/Linux:
# Use --user flag to install in user directory
pip install --user auto-translate-localizablesWindows:
# Run as administrator or use --user flag
pip install --user auto-translate-localizables# Use trusted host flag
pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org auto-translate-localizablespip install --upgrade auto-translate-localizablescd Auto-Translate-localizables
git pull origin main
pip install --upgrade -e .pip uninstall auto-translate-localizables✅ Installation complete!
- Quick Start - Get started in 5 minutes
- Your First Translation - Step-by-step tutorial
- CLI Reference - All commands and options