PHPackages                             aeyoll/ps\_translation - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Localization &amp; i18n](/categories/localization)
4. /
5. aeyoll/ps\_translation

ActivePrestashop-module[Localization &amp; i18n](/categories/localization)

aeyoll/ps\_translation
======================

Translation module for PrestaShop

03PHP

Since Feb 11Pushed 3mo agoCompare

[ Source](https://github.com/aeyoll/ps_translation)[ Packagist](https://packagist.org/packages/aeyoll/ps_translation)[ RSS](/packages/aeyoll-ps-translation/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

PS Translation Module
=====================

[](#ps-translation-module)

Translation module for PrestaShop.

CLI Commands
------------

[](#cli-commands)

### Export Theme Translations

[](#export-theme-translations)

This command allows you to export theme translations in XLIFF format and automatically copy them to the theme's `translations/` directory.

It performs the same operations as the administration interface:

1. Generates XLIFF files from templates, existing translations, and the database
2. Creates a ZIP archive
3. Extracts the archive
4. Copies XLIFF files to the theme's `translations/` directory
5. Cleans up temporary files

#### Usage

[](#usage)

```
php bin/console prestashop:translations:export-theme
```

#### Arguments

[](#arguments)

- `theme`: Theme name (directory name in `themes/`)
- `iso_code`: Language ISO code (e.g., fr, en, es)

#### Examples

[](#examples)

```
# Export French translations for the yourtheme theme
php bin/console prestashop:translations:export-theme yourtheme fr

# Export English translations
php bin/console prestashop:translations:export-theme yourtheme en
```

#### Result

[](#result)

XLIFF files will be copied to `themes//translations//`:

- `themes/yourtheme/translations/fr-FR/ShopThemeYourtheme.fr-FR.xlf`
- `themes/yourtheme/translations/fr-FR/ShopThemeActions.fr-FR.xlf`
- `themes/yourtheme/translations/fr-FR/ShopThemeCheckout.fr-FR.xlf`
- etc.

**Note:** This command uses exactly the same process as the administration interface (route `/prestashop/improve/international/translations/export`), ensuring full compatibility with manual exports.

These files can then be versioned with the theme to distribute translations.

### Import Theme Translations

[](#import-theme-translations)

This command allows you to import theme translations from XLIFF files to the database.

It performs the same operations as the administration interface:

1. Finds and parses XLIFF files in the theme's `translations/` directory
2. Parses each XLIFF file using Symfony's XliffFileLoader
3. Extracts the domain from the filename (e.g., ShopThemeGlobal.fr-FR.xlf → ShopThemeGlobal)
4. Saves each translation to the database with the theme name
5. Updates existing translations or creates new ones as needed

#### Usage

[](#usage-1)

```
php bin/console prestashop:translations:import-theme
```

#### Arguments

[](#arguments-1)

- `theme`: Theme name (directory name in `themes/`)
- `iso_code`: Language ISO code (e.g., fr, en, es)

#### Examples

[](#examples-1)

```
# Import French translations for the yourtheme theme
php bin/console prestashop:translations:import-theme yourtheme fr

# Import English translations
php bin/console prestashop:translations:import-theme yourtheme en
```

#### Result

[](#result-1)

Translations will be imported into the database with the theme name.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance55

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity12

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2d12416c5c56b3b1a28167538f4c041b36285f5c343526b30e030d47e3f0c5df?d=identicon)[aeyoll](/maintainers/aeyoll)

---

Top Contributors

[![aeyoll](https://avatars.githubusercontent.com/u/1472285?v=4)](https://github.com/aeyoll "aeyoll (1 commits)")

### Embed Badge

![Health badge](/badges/aeyoll-ps-translation/health.svg)

```
[![Health](https://phpackages.com/badges/aeyoll-ps-translation/health.svg)](https://phpackages.com/packages/aeyoll-ps-translation)
```

###  Alternatives

[symfony/translation

Provides tools to internationalize your application

6.6k836.5M2.1k](/packages/symfony-translation)[nesbot/carbon

An API extension for DateTime that supports 281 different languages.

169661.4M4.8k](/packages/nesbot-carbon)[joedixon/laravel-translation

A tool for managing all of your Laravel translations

717911.4k11](/packages/joedixon-laravel-translation)[illuminate/translation

The Illuminate Translation package.

6936.4M495](/packages/illuminate-translation)[lajax/yii2-translate-manager

Translation management extension for Yii 2

227578.8k13](/packages/lajax-yii2-translate-manager)[larswiegers/laravel-translations-checker

Make sure your laravel translations are checked and are included in all languages.

256423.2k2](/packages/larswiegers-laravel-translations-checker)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
