# 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

  Bases: `ConfigurationModelABC`

  property default_language: str
  from_dict(settings: dict)

    Converts attributes to dict

    Parameter:

      settings: `dict`

  property languages: list[str]