PHPackages                             parfaitementweb/statamic-locale-suggester - 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. parfaitementweb/statamic-locale-suggester

AbandonedArchivedLibrary[Localization &amp; i18n](/categories/localization)

parfaitementweb/statamic-locale-suggester
=========================================

Statamic addon to suggest your visitors to read the page in their preferred language.

1.0.2(5y ago)04.0k↓100%1[1 PRs](https://github.com/parfaitementweb/statamic-locale-suggester/pulls)PHP

Since Mar 23Pushed 2y ago1 watchersCompare

[ Source](https://github.com/parfaitementweb/statamic-locale-suggester)[ Packagist](https://packagist.org/packages/parfaitementweb/statamic-locale-suggester)[ RSS](/packages/parfaitementweb-statamic-locale-suggester/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

Locale Suggester
================

[](#locale-suggester)

[![Statamic 3.0+](https://camo.githubusercontent.com/93c61a311851e398f5663226aca5d307d91ef898067c6b294110a785d6c2e735/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53746174616d69632d332e302b2d4646323639453f7374796c653d666f722d7468652d6261646765266c696e6b3d68747470733a2f2f73746174616d69632e636f6d)](https://camo.githubusercontent.com/93c61a311851e398f5663226aca5d307d91ef898067c6b294110a785d6c2e735/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53746174616d69632d332e302b2d4646323639453f7374796c653d666f722d7468652d6261646765266c696e6b3d68747470733a2f2f73746174616d69632e636f6d)

> Suggest your visitors to read the content in their preferred language. 🌍

Features
--------

[](#features)

- **Displays an alert** if the current page is available in the **visitor's preferred language.**
- Based on your **multi-site configuration**.
- Entirely **customizable**
- Entirely **translatable**
- **Built-in translations** in English, French, German, Spanish, Italian, Dutch and Portugese

How does it work?
-----------------

[](#how-does-it-work)

1. We detect the preferred language of your visitors based on their browser settings.
2. If their preferred language matches a locale in your multi-site configuration, the alert box will be shown.
3. If the visitor dismisses the alert box, we set a cookie and he won't be bothered again.

Getting Started
---------------

[](#getting-started)

> This addon required PHP PECL intl &gt;= 1.0.0 to be installed on your server.

We have made things easy for you to start. Here are the three steps your need to follow:

1. **Install the addon**
    Simply run `composer require parfaitementweb/statamic-locale-suggester`
    You also can follow the [official Statamic help guide](https://statamic.dev/addons#installing-addons)
2. **Add these two tags in your layout.**

This insert the alert in your layout. By default, its position is fixed so placing this tag at the bottom of your `` is fine.

```
{{ locale-suggester:alert }}

```

Add the scripts in your layout. This handles the dismiss button.

```
{{ locale-suggester:script }}

```

3. **Enjoy.**

What does the addon look like?
------------------------------

[](#what-does-the-addon-look-like)

[![Statamic Locale Suggester Preview in EN](https://camo.githubusercontent.com/1b5a538befcdd03b5972bab9473d3619af1e22049d5266dea47e5bec3c1bbce4/68747470733a2f2f70617266616974656d656e747765622e636f6d2f73746174616d69632f73746174616d69632d6c6f63616c652d7375676765737465722f73746174616d69632d6c6f63616c652d7375676765737465722d656e2e706e67)](https://camo.githubusercontent.com/1b5a538befcdd03b5972bab9473d3619af1e22049d5266dea47e5bec3c1bbce4/68747470733a2f2f70617266616974656d656e747765622e636f6d2f73746174616d69632f73746174616d69632d6c6f63616c652d7375676765737465722f73746174616d69632d6c6f63616c652d7375676765737465722d656e2e706e67)

[![Statamic Locale Suggester Preview in FR](https://camo.githubusercontent.com/28a2175c2f5e8427e76a5d5d66e71a7e013877654193d36d05b8744bfd738d1c/68747470733a2f2f70617266616974656d656e747765622e636f6d2f73746174616d69632f73746174616d69632d6c6f63616c652d7375676765737465722f73746174616d69632d6c6f63616c652d7375676765737465722d66722e706e67)](https://camo.githubusercontent.com/28a2175c2f5e8427e76a5d5d66e71a7e013877654193d36d05b8744bfd738d1c/68747470733a2f2f70617266616974656d656e747765622e636f6d2f73746174616d69632f73746174616d69632d6c6f63616c652d7375676765737465722f73746174616d69632d6c6f63616c652d7375676765737465722d66722e706e67)

[![Statamic Locale Suggester Dashboard](https://camo.githubusercontent.com/dcf1ad561632be5ee600eeada5fa68735610f327b79757e8cfd6150724bc1e2c/68747470733a2f2f70617266616974656d656e747765622e636f6d2f73746174616d69632f73746174616d69632d6c6f63616c652d7375676765737465722f73746174616d69632d6c6f63616c652d7375676765737465722d64617368626f6172642e706e67)](https://camo.githubusercontent.com/dcf1ad561632be5ee600eeada5fa68735610f327b79757e8cfd6150724bc1e2c/68747470733a2f2f70617266616974656d656e747765622e636f6d2f73746174616d69632f73746174616d69632d6c6f63616c652d7375676765737465722f73746174616d69632d6c6f63616c652d7375676765737465722d64617368626f6172642e706e67)

Customize the alert, the script and the translations
----------------------------------------------------

[](#customize-the-alert-the-script-and-the-translations)

You can execute the following commands so the views and translations files will be copied to your vendor resources folder.

```
php artisan vendor:publish --tag=statamic-locale-suggester-views
php artisan vendor:publish --tag=statamic-locale-suggester-translations

```

Don't be shocked when you'll discover we've used plain and inlined CSS rules in our alert template. This is done to ensure maximum compability without the need to recompile and repurge your stylesheet before being able to use this addon. You can of course customize everything to your needs.

Changelog
---------

[](#changelog)

**V1.0.1**
SameSite Cookie value has been set to Lax.
Improved default UI for the alert

**V1.0.1**
Better to not show the alert for unpublished versions isn't?

**V1.0.0**
🚀 Would you like to read the initial commit in another language?

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 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 ~0 days

Total

3

Last Release

1876d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/67c747d82e5989eeae3f98ae775f6e9d9aaee286e221e9f35a446e0f440421a8?d=identicon)[parfaitementweb](/maintainers/parfaitementweb)

---

Top Contributors

[![AlexisSerneels](https://avatars.githubusercontent.com/u/287688?v=4)](https://github.com/AlexisSerneels "AlexisSerneels (3 commits)")

### Embed Badge

![Health badge](/badges/parfaitementweb-statamic-locale-suggester/health.svg)

```
[![Health](https://phpackages.com/badges/parfaitementweb-statamic-locale-suggester/health.svg)](https://phpackages.com/packages/parfaitementweb-statamic-locale-suggester)
```

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