PHPackages                             level51/translatable-tlds - 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. level51/translatable-tlds

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

level51/translatable-tlds
=========================

SilverStripe module providing TLD-based locale switching using Translatable.

0.1.0(9y ago)02.0k2[1 issues](https://github.com/Level51/translatable-tlds/issues)MITPHPPHP &gt;=5.3.2CI failing

Since Oct 18Pushed 6y ago2 watchersCompare

[ Source](https://github.com/Level51/translatable-tlds)[ Packagist](https://packagist.org/packages/level51/translatable-tlds)[ RSS](/packages/level51-translatable-tlds/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

Translatable Top-Level-Domains for SilverStripe
===============================================

[](#translatable-top-level-domains-for-silverstripe)

This modules enables having duplicate URLSegments for different TLDs on one host, e.g. lvl51.de/about and lvl51.com/about. Since this is intended to be used alongside the Translatable module there will be entries in the `SiteTree` table for each of pages/URLSegments.

Dependencies
------------

[](#dependencies)

- SilverStripe Framework ~3.1
- SilverStripe CMS ~3.1
- Translatable ~2.1

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

[](#installation)

```
composer require level51/translatable-tlds

```

If you don't like composer you can just download and unpack it to the root of your SilverStripe project.

Be sure to run `dev/build?flush=all` after you have added the module.

Features
--------

[](#features)

- Locale-sensitive delivery of `SiteTree` records.
- Helper methods for working with TLDs:

```
// Fetches the current TLD and looks for a rule in the config
$locale = TranslatableTLDs::lookup_tld_rule();

// Apply the rule (if not null)
if($locale)
    Translatable::set_current_locale($locale);
```

Configuration
-------------

[](#configuration)

You can add rules via Config API:

```
TranslatableTLDs:
  part: 'tld'
  rules:
    'com': 'en_US'
    'de': 'de_DE'
    'net': 'de_AT'
```

If part is set to 'subdomain', then the module will switch to subdomain matching.

Maintainers
-----------

[](#maintainers)

- Julian Scheuchenzuber

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

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

Unknown

Total

1

Last Release

3490d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/441f0e8f95c17048417a33f37e35d5ffdd4c07902cbedaf7f5786f4b7c454284?d=identicon)[JZubero](/maintainers/JZubero)

---

Top Contributors

[![digitall-it](https://avatars.githubusercontent.com/u/3578378?v=4)](https://github.com/digitall-it "digitall-it (3 commits)")[![JZubero](https://avatars.githubusercontent.com/u/13751426?v=4)](https://github.com/JZubero "JZubero (3 commits)")

### Embed Badge

![Health badge](/badges/level51-translatable-tlds/health.svg)

```
[![Health](https://phpackages.com/badges/level51-translatable-tlds/health.svg)](https://phpackages.com/packages/level51-translatable-tlds)
```

###  Alternatives

[silverstripe/translatable

Allows translation of DataObject and SiteTree records into multiple languages

53192.0k8](/packages/silverstripe-translatable)[tractorcow/silverstripe-fluent

Simple localisation for Silverstripe

92421.6k26](/packages/tractorcow-silverstripe-fluent)[silverstripe/superglue

102.2k](/packages/silverstripe-superglue)

PHPackages © 2026

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