PHPackages                             unisolutions/silverstripe-i18nenum - 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. unisolutions/silverstripe-i18nenum

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

unisolutions/silverstripe-i18nenum
==================================

Translatable Enum fieldtype for Silverstripe.

51.6k6[1 PRs](https://github.com/unisolutions/silverstripe-i18nenum/pulls)PHP

Since Dec 23Pushed 9y ago2 watchersCompare

[ Source](https://github.com/unisolutions/silverstripe-i18nenum)[ Packagist](https://packagist.org/packages/unisolutions/silverstripe-i18nenum)[ RSS](/packages/unisolutions-silverstripe-i18nenum/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

silverstripe-i18nenum
=====================

[](#silverstripe-i18nenum)

Translatable Enum fieldtype

Maintainer Contact
------------------

[](#maintainer-contact)

Elvinas Liutkevičius

&lt;elvinas (at) unisolutions (dot) eu&gt;

Requirements
------------

[](#requirements)

SilverStripe 3

Documentation
-------------

[](#documentation)

Simply install the module using the standard method.

Now you can create datafield with translatable enum Field:

```
class MyDataObject extends DataObject {
	public static $db = array(
		'DbField' => "i18nEnum('default, other', 'default')",
	);
}

```

To get translated Enum value in GridField, you need to return the value in this way:

```
class MyDataObject extends DataObject {
	...
	public function DbField() {
		return i18nEnum::getTranslatedValue($this->className, __FUNCTION__, $this->{__FUNCTION__});
	}
}

```

By default translation namespace will be your DataObject class name and the entity will be constructed like this: "db\_{DbField}\_{enum value}". So your translation file should look like this:

```
lang:
  MyDataObject:
    db_DbField_default: 'Default'
    db_DbField_other: 'Other'

```

Known issues
------------

[](#known-issues)

- GridField filtering in GridFieldFilterHeader won't work as expected - it still constructs the search filter using enum values only.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% 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/196e5dd34823268010060b8f5121b7621d1ef1b66c3c91bb09ab84a3c40b26ef?d=identicon)[uniun](/maintainers/uniun)

---

Top Contributors

[![elvinas-liut](https://avatars.githubusercontent.com/u/2812754?v=4)](https://github.com/elvinas-liut "elvinas-liut (8 commits)")[![uniun](https://avatars.githubusercontent.com/u/92462659?v=4)](https://github.com/uniun "uniun (2 commits)")

### Embed Badge

![Health badge](/badges/unisolutions-silverstripe-i18nenum/health.svg)

```
[![Health](https://phpackages.com/badges/unisolutions-silverstripe-i18nenum/health.svg)](https://phpackages.com/packages/unisolutions-silverstripe-i18nenum)
```

###  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)
