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 4mo 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 today

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

18

—

LowBetter than 8% of packages

Maintenance51

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

[smmoosavi/php-gettext

Wrapper for php-gettext by danilo segan. This library provides PHP functions to read MO files even when gettext is not compiled in or when appropriate locale is not present on the system.

1927.0k1](/packages/smmoosavi-php-gettext)

PHPackages © 2026

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