Skip to main content
Version: 2024.2

Development Details

General Aspects​

Services for translation adapters and data changed handler are registered automatically when they implement the respecting interfaces DataChangedHandlerInterface and TranslationsProviderInterface.

Register process implemented by

  • automatically tagging all services that implement the mentioned interfaces via auto configuration during build
  • registering all tagged services in data changed service and translation provider manager via compiler pass

Translation Providers​

Translation providers are implemented and configured as services. This bundle ships with default service configurations of the two supported translation providers:

services: 
translations-provider.translationscom:
class: Pimcore\TranslationsProviderInterfaceBundle\TranslationsProvider\TranslationsCom
public: true
arguments:
$shortcut: 'translations.com'
$projectShortCode: '%translations_com.project-shortcode%'
calls:
- method: setTranslationExporter
arguments:
- '@translations-exporter.translationscom'

translations-provider.xplanation:
class: Pimcore\TranslationsProviderInterfaceBundle\TranslationsProvider\XPlanation
arguments:
$shortcut: 'XPlanation'
$projectShortCode: '%XPlanation.project-shortcode%'

To add custom instances of these translation providers or implement additional custom translation providers, just override the existing or register new services.