PHPackages                             reachweb/locale-lander - 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. reachweb/locale-lander

ActiveStatamic-addon[Localization &amp; i18n](/categories/localization)

reachweb/locale-lander
======================

Locale Lander for Statamic

v3.3.0(3mo ago)42.0k↓50%2mitPHPPHP ^8.2CI passing

Since Jan 24Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/reachweb/locale-lander)[ Packagist](https://packagist.org/packages/reachweb/locale-lander)[ Docs](https://www.reach.gr)[ RSS](/packages/reachweb-locale-lander/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (12)Used By (0)

[![locale_lander_bg](https://private-user-images.githubusercontent.com/7423993/303936558-54b3f81a-8341-4182-94bb-85e60e149ad5.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzQ4NTcwNTMsIm5iZiI6MTc3NDg1Njc1MywicGF0aCI6Ii83NDIzOTkzLzMwMzkzNjU1OC01NGIzZjgxYS04MzQxLTQxODItOTRiYi04NWU2MGUxNDlhZDUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MDMzMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjAzMzBUMDc0NTUzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9Mjk0ZTMwZTA5ZDUxNWUwMDAzNjJkNWEzMjhlN2EyZWE5ZWE1ODg1YzEwODY1MmEwYWY1MWFlNTNhNjc3NjI4OSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.dGtpgFz_okKNsoudCC4LvmW2Dzmog0PwdlmbQKtgM5Y)](https://private-user-images.githubusercontent.com/7423993/303936558-54b3f81a-8341-4182-94bb-85e60e149ad5.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzQ4NTcwNTMsIm5iZiI6MTc3NDg1Njc1MywicGF0aCI6Ii83NDIzOTkzLzMwMzkzNjU1OC01NGIzZjgxYS04MzQxLTQxODItOTRiYi04NWU2MGUxNDlhZDUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MDMzMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjAzMzBUMDc0NTUzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9Mjk0ZTMwZTA5ZDUxNWUwMDAzNjJkNWEzMjhlN2EyZWE5ZWE1ODg1YzEwODY1MmEwYWY1MWFlNTNhNjc3NjI4OSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.dGtpgFz_okKNsoudCC4LvmW2Dzmog0PwdlmbQKtgM5Y)

Locale Lander
=============

[](#locale-lander)

Locale Lander is a simple addon for Statamic, particularly useful for multi-site setups involving multiple languages. It redirects users to the **default language of their browser** during their first visit or displays a banner informing the user that the content is available in their native language.

How to Install
--------------

[](#how-to-install)

Install using composer:

```
composer require reachweb/locale-lander
```

How to Use (Redirection)
------------------------

[](#how-to-use-redirection)

To use the redirection feature, no additional configuration is needed after installation. The addon should function right out of the box.

How to Use (Banner)
-------------------

[](#how-to-use-banner)

To use the banner feature, Locale Lander provides a tag called, you guessed it, `locale-lander`.

First, you must disable automatic redirection. Publish the config file:

```
php artisan vendor:publish --tag=locale-lander-config
```

and in `config/locale-lander.php` disable redirection:

```
'enable_redirection' => false,
```

Then, you can use the tag by adding the necessary code to a file that loads on all pages of your website, usually `layout.antlers.html`.

```
{{ locale_banner }}
    {{ if entry }}
        {{ partial src="vendor/locale-lander/banner" }}
    {{ /if }}
{{ /locale_banner }}

```

The tag will return an `array` that always contains an 'entry' key. If the Entry is unavailable in this locale, `entry` will be false. Otherwise, it will contain the `title` and the `url` of the entry. A `site` key is also provided with information about the user's locale site.

As you might have guessed, the addon contains an example banner template, styled with *Tailwind CSS*, that works out of the box.

Publish the template:

```
php artisan vendor:publish --tag=locale-lander-views
```

and you should be good to go. If you are not using Tailwind CSS, you will need to style it yourself.

In case you want to implement your own version, note that you should set a cookie named `locale_banner_closed` to prevent showing the banner to users who have closed it.

Limiting redirection to the homepage only
-----------------------------------------

[](#limiting-redirection-to-the-homepage-only)

You can limit redirection so that it only applies in the homepage.

To do so, first if you haven't already done so, publish the config:

```
php artisan vendor:publish --tag=locale-lander-config
```

then in `config/locale-lander.php` enable `redirect_only_homepage`:

```
'redirect_only_homepage' => true,
```

How it Works
------------

[](#how-it-works)

This addon automatically applies a middleware in the `statamic.web` middleware group. Here's the process:

- It checks the user's **browser language** and the **sites** defined in `statamic/sites.php`.
- If the current site's locale **differs** from the user's browser, it verifies if a site for that locale exists.
- If such a site exists and the current entry is **available** in that locale, it redirects the user there.
- A **session variable** is set to avoid repetitive redirection. This prevents redirect loops and accommodates users who prefer a different locale than their browser’s default.

Common Issues
-------------

[](#common-issues)

- The addon functions with URLs resolving to an `Entry`. It won't work if the first page a user visits isn't an Entry. (Future improvements are planned for this issue.)
- If the site's default locale matches the user's, or if the user initially visits the site in their locale but chooses to visit a different one, they will be redirected back to their original locale **once**. I am currently working to resolve this issue, but it may require modifications to the language switcher.

###  Health Score

48

—

FairBetter than 95% of packages

Maintenance79

Regular maintenance activity

Popularity26

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 91.3% 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 ~73 days

Recently: every ~179 days

Total

11

Last Release

110d ago

Major Versions

v1.0.5 → v2.0.02024-02-11

v2.0.0 → v3.0.02024-06-08

PHP version history (2 changes)v1.0.4PHP ^8.1 || ^8.2

v3.1.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/043c16e10a57aa2e23f25400c12c1ef9c809ddcb369fbd79cf9c162d89fa8289?d=identicon)[reachweb](/maintainers/reachweb)

---

Top Contributors

[![afonic](https://avatars.githubusercontent.com/u/7423993?v=4)](https://github.com/afonic "afonic (42 commits)")[![FlxRobole](https://avatars.githubusercontent.com/u/142887197?v=4)](https://github.com/FlxRobole "FlxRobole (4 commits)")

---

Tags

multilingualstatamic

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/reachweb-locale-lander/health.svg)

```
[![Health](https://phpackages.com/badges/reachweb-locale-lander/health.svg)](https://phpackages.com/packages/reachweb-locale-lander)
```

###  Alternatives

[themsaid/laravel-langman

Manage language files with ease.

871307.5k11](/packages/themsaid-laravel-langman)[icanboogie/inflector

Multilingual inflector that transforms words from singular to plural, underscore to camel case, and more.

2182.4M69](/packages/icanboogie-inflector)[typicms/base

A modular multilingual CMS built with Laravel, enabling developers to manage structured content like pages, news, events, and more.

1.6k20.3k](/packages/typicms-base)[asgardcms/platform

The AsgardCms application.

78960.8k](/packages/asgardcms-platform)[tractorcow/silverstripe-fluent

Simple localisation for Silverstripe

92421.6k26](/packages/tractorcow-silverstripe-fluent)[omgdef/yii2-multilingual-behavior

Port of the yii-multilingual-behavior for yii

143174.9k9](/packages/omgdef-yii2-multilingual-behavior)

PHPackages © 2026

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