# Translation reference

## cpl_translation.translate_pipe

class cpl_translation.translate_pipe.TranslatePipe(translation: TranslationServiceABC)

  Bases: `PipeABC`

  transform(value: any, *args)

## cpl_translation.translation_service

class cpl_translation.translation_service.TranslationService

  Bases: `TranslationServiceABC`

  load(lang: str)
  load_by_settings(settings: TranslationSettings)
  set_default_lang(lang: str)
  set_lang(lang: str)
  translate(key: str) → str

## cpl_translation.translation_service_abc

class cpl_translation.translation_service_abc.TranslationServiceABC

  Bases: `ABC`

  abstract load(lang: str)
  abstract load_by_settings(settings: TranslationSettings)
  abstract set_default_lang(lang: str)
  abstract set_lang(lang: str)
  abstract translate(key: str) → str

## cpl_translation.translation_settings

class cpl_translation.translation_settings.TranslationSettings(languages: list | None = None, default_lang: str | None = None)

  Bases: `ConfigurationModelABC`

  property default_language: str
  property languages: list[str]