PhoenixKit.Modules.Publishing.Web.Controller.Translations (phoenix_kit v1.7.71)

Copy Markdown View Source

Translation link building for the publishing controller.

Handles building translation/language switcher links for:

  • Group listing pages
  • Individual post pages

Summary

Functions

Build translation links for group listing page. Accepts posts to avoid redundant list_posts calls.

Functions

build_listing_translations(group_slug, current_language, posts)

Build translation links for group listing page. Accepts posts to avoid redundant list_posts calls.

build_translation_links(group_slug, post, current_language, opts \\ [])

Build translation links for a post page.