locale.services.yml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. services:
  2. locale.default.config.storage:
  3. class: Drupal\locale\LocaleDefaultConfigStorage
  4. arguments: ['@config.storage', '@language_manager', '%install_profile%']
  5. public: false
  6. locale.config_manager:
  7. class: Drupal\locale\LocaleConfigManager
  8. arguments: ['@config.storage', '@locale.storage', '@config.factory', '@config.typed', '@language_manager', '@locale.default.config.storage', '@config.manager']
  9. locale.storage:
  10. class: Drupal\locale\StringDatabaseStorage
  11. arguments: ['@database']
  12. tags:
  13. - { name: backend_overridable }
  14. locale.project:
  15. class: Drupal\locale\LocaleProjectStorage
  16. arguments: ['@keyvalue']
  17. locale.plural.formula:
  18. class: Drupal\locale\PluralFormula
  19. arguments: ['@language_manager', '@state']
  20. string_translator.locale.lookup:
  21. class: Drupal\locale\LocaleTranslation
  22. arguments: ['@locale.storage', '@cache.default', '@lock', '@config.factory', '@language_manager', '@request_stack']
  23. tags:
  24. - { name: string_translator }
  25. - { name: needs_destruction }
  26. stream_wrapper.translations:
  27. class: Drupal\locale\StreamWrapper\TranslationsStream
  28. tags:
  29. - { name: stream_wrapper, scheme: translations }
  30. locale.config_subscriber:
  31. class: Drupal\locale\LocaleConfigSubscriber
  32. arguments: ['@config.factory', '@locale.config_manager']
  33. tags:
  34. - { name: event_subscriber }
  35. locale.locale_translation_cache_tag:
  36. class: Drupal\locale\EventSubscriber\LocaleTranslationCacheTag
  37. arguments: ['@cache_tags.invalidator']
  38. tags:
  39. - { name: event_subscriber }