Jump to main content Jump to doc navigation

The BabelTranslation snippets returns the ID of a translated resource in a given context.

Available Parameters

Name Description Default
resourceId (optional) ID of resource of which a translated resource should be determined. current resource's ID
contextKey Key of context in which translated resource should be determined.
showUnpublished (optional) Flag whether to show unpublished translations. 0


[[BabelTranslation? &contextKey=`de`]]

This will return the ID of the translated resource located in the "de" context of the current resource.

See Also

  1. Babel.BabelLinks
  2. Babel.BabelTranslation

Offical Babel project website: Multilingual websites with MODX

Support the team building MODX with a monthly donation.

The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.


  • modmore
  • Jens Wittmann – Gestaltung & Entwicklung
  • Fabian Christen
  • Digital Penguin
  • Dannevang Digital
  • Sepia River Studios
  • Chris Fickling
  • CrewMark
  • deJaya
  • Following Sea
  • Anton Tarasov
  • eydolan
  • Raffy
  • Lefthandmedia
  • Murray Wood
  • Snow Creative
  • Nick Clark
  • Helen
  • JT Skaggs
  • krisznet
  • YJ
  • Yanni
  • Richard


$370 per month—let's make that $500!

Learn more