1. Collections Component Guide
  2. Translation navigation
  3. Default
Translation navigation example

Default

How it looks (preview)

How to call this example

<%= render "govuk_publishing_components/components/translation_nav", {
  translations: [
    {
      locale: "en",
      base_path: "/en",
      text: "English",
      active: true
    },
    {
      locale: "hi",
      base_path: "/hi",
      text: "हिंदी"
    }
  ]
} %>