PHPackages                             daun/statamic-graphql-alternate-locales - 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. [API Development](/categories/api)
4. /
5. daun/statamic-graphql-alternate-locales

ActiveStatamic-addon[API Development](/categories/api)

daun/statamic-graphql-alternate-locales
=======================================

List alternate locales of entries in Statamic GraphQL queries.

1.1.0(8mo ago)21.9kMITPHPPHP ^8.1

Since Oct 3Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/daun/statamic-graphql-alternate-locales)[ Packagist](https://packagist.org/packages/daun/statamic-graphql-alternate-locales)[ RSS](/packages/daun-statamic-graphql-alternate-locales/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (2)Dependencies (1)Versions (4)Used By (0)

Statamic GraphQL Alternate Locales
==================================

[](#statamic-graphql-alternate-locales)

**List alternate locales of entries in Statamic GraphQL queries.**

This addon provides a simple way of querying alternate languages of entries in GraphQL. Mainly useful for frontend language switches.

[![Screenshot of locale query in Statamic GraphiQL interface](./art/statamic-graphql-alternate-locales.png)](./art/statamic-graphql-alternate-locales.png)

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

[](#installation)

```
composer require daun/statamic-graphql-alternate-locales
```

Usage
-----

[](#usage)

After installation, you can list all locales of an entry from the new `locales` field. It requires selecting the specific subfields to return. See below for a list of all supported subfields.

```
{
  page: entry(
    collection: "pages"
    slug: "about"
    filter: { locale: "en" }
  ) {
    slug
    title
    locale
    locales {
      locale
      slug
      title
    }
  }
}
```

The above query would result in the following data:

```
{
  "slug": "about",
  "title": "About",
  "locale": "en",
  "locales": [
    {
      "locale": "de",
      "slug": "ueber-uns",
      "title": "Über uns"
    },
    {
      "locale": "en",
      "slug": "about",
      "title": "About"
    }
  ]
}
```

Publish status
--------------

[](#publish-status)

By default, the `locales` field only returns entries in published locales. To include all locales regardless of publish status, set the `unpublished` arg to `true`:

```
locales (unpublished: true) {
  locale
  slug
  title
}
```

Available subfields
-------------------

[](#available-subfields)

SubfieldTypeValue`id``string``$entry->id()``locale``string``$entry->locale()``current``boolean``$entry->locale()` === `locale` filter of query`slug``string``$entry->slug()``url``string``$entry->url()``uri``string``$entry->uri()``permalink``string``$entry->absoluteUrl()``published``boolean``$entry->published()``private``boolean``$entry->private()``status``string``$entry->status()``title``string``$entry->get('title')`License
-------

[](#license)

[MIT](https://opensource.org/licenses/MIT)

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance59

Moderate activity, may be stable

Popularity23

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Total

2

Last Release

262d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/31ac2b3787ded290b6bac87b937abf4f267483e4da64731bfb256a942bb669ca?d=identicon)[daun](/maintainers/daun)

---

Top Contributors

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

---

Tags

graphqli18nlocalestatamici18nlanguagegraphqllocalesitestatamicalternate

### Embed Badge

![Health badge](/badges/daun-statamic-graphql-alternate-locales/health.svg)

```
[![Health](https://phpackages.com/badges/daun-statamic-graphql-alternate-locales/health.svg)](https://phpackages.com/packages/daun-statamic-graphql-alternate-locales)
```

###  Alternatives

[statamic/statamic

Statamic

829179.5k](/packages/statamic-statamic)[laravel-lang/common

Easily connect the necessary language packs to the application

1593.8M34](/packages/laravel-lang-common)[aplus/language

Aplus Framework Language Library

2391.7M15](/packages/aplus-language)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135224.7k7](/packages/statamic-rad-pack-runway)[vluzrmos/language-detector

Detect the language for your application using browser preferences, subdomains or route prefixes.

111573.0k3](/packages/vluzrmos-language-detector)[tractorcow/silverstripe-fluent

Simple localisation for Silverstripe

91437.9k29](/packages/tractorcow-silverstripe-fluent)

PHPackages © 2026

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