dravencms/translation

DravenCMS Kdyby Translation

Maintainers

Package info

github.com/dravencms/translation

Type:dravencms-package

pkg:composer/dravencms/translation

Transparency log

Statistics

Installs: 409

Dependents: 2

Suggesters: 0

Stars: 0

Open Issues: 2

1.2.2 2024-03-17 20:30 UTC

This package is auto-updated.

Last update: 2026-08-24 22:39:03 UTC


README

Default Contributte Translation configuration for DravenCMS applications. It establishes locale resolution and fallback behavior shared by package translation providers.

Installation

composer require dravencms/translation

The package registers Contributte\Translation\DI\TranslationExtension with these defaults:

  • Default locale: en
  • Fallback locale: en
  • Undefined messages are returned unchanged.
  • Locale resolution uses the router first and the request headers second.

Configuration

Override the defaults in application configuration:

translation:
    locales:
        default: cs
        fallback: [cs, en]
    returnOriginalMessage: true

DravenCMS feature extensions that implement TranslationProviderInterface contribute their language directories automatically.

This package configures translation infrastructure only. Locale entities, formats, and administration are provided by dravencms/locale.

License

This package is licensed under the LGPL-3.0 license.