congraph/locales

There is no license information available for the latest version (v2.0.3) of this package.

Maintainers

Package info

github.com/congraphcms/locales

pkg:composer/congraph/locales

Statistics

Installs: 170

Dependents: 5

Suggesters: 0

Stars: 0

Open Issues: 0

v2.0.3 2026-04-11 09:08 UTC

This package is auto-updated.

Last update: 2026-04-12 09:55:06 UTC


README

congraph/locales manages available locales in a Congraph installation.

Responsibilities

  • locale persistence
  • locale CRUD commands and validators
  • locale repository bindings

This package is used by eav and any localized content workflows.

Installation

composer require congraph/locales

Laravel package provider:

Typical usage

Use the package to:

  • create locales like en_US, sr_RS, or fr_FR
  • fetch configured locales
  • drive localized entity fields in eav

In most apps this package is not consumed directly by controllers; instead it is surfaced through laravel-api.

Development

Install dependencies

cd /Users/nikolap/git/np/congraph/packages/locales
composer update -W

Run tests

composer test
composer test:pgsql

composer test is fast and SQLite-backed by default.
composer test:pgsql uses an ephemeral PostgreSQL container.

Contribution notes

  • preserve locale code normalization behavior
  • keep tests env-driven instead of hardcoding a database backend
  • prefer PostgreSQL-safe and SQLite-safe queries