dravencms / translation
DravenCMS Kdyby Translation
Package info
github.com/dravencms/translation
Type:dravencms-package
pkg:composer/dravencms/translation
Requires
- contributte/translation: >=0.9.3
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
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.