PHPackages                             sergeil/extjslocalization-bundle - 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. sergeil/extjslocalization-bundle

ActiveSymfony-bundle[Localization &amp; i18n](/categories/localization)

sergeil/extjslocalization-bundle
================================

Adds localization support for ExtJs classes to Symfony2

v1.2.3(6y ago)120.6k2MITPHPPHP &gt;=5.6CI failing

Since Jan 11Pushed 6y ago1 watchersCompare

[ Source](https://github.com/sergeil/SliExtJsLocalizationBundle)[ Packagist](https://packagist.org/packages/sergeil/extjslocalization-bundle)[ Docs](https://github.com/sergeil/SliExtJsLocalizationBundle)[ RSS](/packages/sergeil-extjslocalization-bundle/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (8)Dependencies (3)Versions (11)Used By (0)

SliExtJsLocalizationBundle [![Build Status](https://camo.githubusercontent.com/8b657a21202a8418f2b4e9bc5c268f6757a0d34867c71406b57674c949beb717/68747470733a2f2f7472617669732d63692e6f72672f7365726765696c2f536c694578744a734c6f63616c697a6174696f6e42756e646c652e7376673f6272616e63683d646576656c6f70)](https://travis-ci.org/sergeil/SliExtJsLocalizationBundle)
==================================================================================================================================================================================================================================================================================================================================================================

[](#sliextjslocalizationbundle-)

This bundles makes it possible to extract translation tokens from ExtJs classes, let you translate them and then have your ExtJs classes localized.

This is how a sample ExtJs may look like that this bundle is able to parse:

```
Ext.define('Company.foo.bar.MyClass', {
    // l10n
    firstnameText: 'Firstname',
    lastnameText: 'Lastname',

    doSomething: function() {
        // ...
    }
});
```

Shortly, in order the task to detect your extjs class it must comply with the following rules:

- Before the very first translation token this comment must be placed - // l10n
- Translation tokens must be suffixed with "Text", for example - firstnameText
- One blank line must follow after translation tokens and other class members (other properties, methods etc)
- Do not add any blank lines between translation tokens (you might be tempted to do this to group your tokens semantically)

Usage
-----

[](#usage)

Most of the time all you need to do in order to start translating your project's extjs classes is to execute the following command:

```
php app/console sli:update-extjs-translation fr AcmeDemoBundle --output-format=xlf
```

After executing the command, given that you have AcmeDemoBundle installed in your project and the bundle has "Resources/public/js/" directory ( and some classes inside it ), then the command will parse the files inside this directory and generate Resources/translations/extjs.fr.xlf file.

Once you have some translation catalogues in place, in your templates you can use either this:

```

```

or this:

```

  {{ render(url('sli_extjs_route', { locale: 'fr' })) }}}

```

to have them loaded. The only difference between these two examples is that in the second one, the generated by bundle javascript code will be embedded into the template.

If you need to change URL that is used to generate extjs-localization code then you can override value of `sli_ext_js_localization.route` service container configuration parameter.

Installation
------------

[](#installation)

Add this dependency to your composer.json:

```
"sergeil/extjslocalization-bundle": "dev-develop"

```

Update your AppKernel class and add this:

```
new \Sli\ExtJsLocalizationBundle\SliExtJsLocalizationBundle(),

```

Licensing
---------

[](#licensing)

This bundle is under the MIT license. See the complete license in the bundle: Resources/meta/LICENSE

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 69.7% 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.

###  Release Activity

Cadence

Every ~224 days

Recently: every ~50 days

Total

9

Last Release

2392d ago

PHP version history (2 changes)v1.0.0PHP &gt;=5.3.0

v1.1.0PHP &gt;=5.6

### Community

Maintainers

![](https://www.gravatar.com/avatar/32010d9d9c2226f0c7119fb1d4006d1847a6dd6db135d2fcacba8578a8a13b90?d=identicon)[sergeil](/maintainers/sergeil)

---

Top Contributors

[![sergeil](https://avatars.githubusercontent.com/u/425579?v=4)](https://github.com/sergeil "sergeil (23 commits)")[![cravler](https://avatars.githubusercontent.com/u/157440?v=4)](https://github.com/cravler "cravler (9 commits)")[![LukasAddon](https://avatars.githubusercontent.com/u/10450636?v=4)](https://github.com/LukasAddon "LukasAddon (1 commits)")

---

Tags

extjsl10ntranslationextjs

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sergeil-extjslocalization-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/sergeil-extjslocalization-bundle/health.svg)](https://phpackages.com/packages/sergeil-extjslocalization-bundle)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.5M378](/packages/easycorp-easyadmin-bundle)[jms/translation-bundle

Puts the Symfony Translation Component on steroids

42411.0M74](/packages/jms-translation-bundle)[lexik/translation-bundle

This bundle allows to import translation files content into the database and provide a GUI to edit translations.

4382.8M19](/packages/lexik-translation-bundle)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M524](/packages/shopware-core)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1615.6k12](/packages/2lenet-crudit-bundle)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1175.2k](/packages/rcsofttech-audit-trail-bundle)

PHPackages © 2026

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