PHPackages                             xini/silverstripe-localedomains - 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. xini/silverstripe-localedomains

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

xini/silverstripe-localedomains
===============================

Allows to setup a domain for each language configured and forces translated pages to the domain according to their locale.

1.1.0(9y ago)01251PHP

Since Jul 10Pushed 3y ago2 watchersCompare

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

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

Local Domains
=============

[](#local-domains)

**This is an archived project and is no longer maintained. Please do not file issues or pull-requests against this repo. If you wish to continue to develop this code yourself, we recommend you fork it or contact us.**

Introduction
------------

[](#introduction)

Allows to setup a domain for each language configured and forces translated pages to the domain according to their locale.

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

[](#requirements)

- SilverStripe ~3.0
- Translatable ~1.0

Usage
-----

[](#usage)

Add the following entries to your \_config.php and configure them with your domains and locales:

```
LocaleDomains::addLocaleDomain('de_DE', 'www.germandomain.de');
LocaleDomains::addLocaleDomain('en_GB', 'www.englishdomain.com');
LocaleDomains::addLocaleDomain('fr_FR', 'www.frenchdomain.fr');

```

To get the customised links to the domain according to the locale of the target page, add the following code to your Page.php:

```
public function Link($action=null) {
	$link = parent::Link($action);
	if($this->hasExtension('Translatable') && $this->hasExtension("LocaleDomainDecorator")){
		// check base url and set localised domain if necessary
		$currHost = Director::protocolAndHost();
		$localeHost = Director::protocol().LocaleDomains::getHostFromLocale($this->Locale);
		if ($currHost != $localeHost) {
			$link = Controller::join_links($localeHost, $link);
		}
	}
	return $link;
}

```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~336 days

Total

2

Last Release

3629d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0d2e71d7787401a7bd4916062346163897f89f455d650ab32b5d60cd14825ad3?d=identicon)[xini](/maintainers/xini)

---

Top Contributors

[![xini](https://avatars.githubusercontent.com/u/1152403?v=4)](https://github.com/xini "xini (10 commits)")

---

Tags

translationsilverstripetranslatabledomain

### Embed Badge

![Health badge](/badges/xini-silverstripe-localedomains/health.svg)

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

###  Alternatives

[tractorcow/silverstripe-fluent

Simple localisation for Silverstripe

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

Allows translation of DataObject and SiteTree records into multiple languages

53192.0k8](/packages/silverstripe-translatable)[yiimaker/yii2-translatable

Translatable behavior aggregates logic of linking translations to the primary model

1534.0k1](/packages/yiimaker-yii2-translatable)

PHPackages © 2026

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