1. Component Guide
  2. Notice
  3. With locale
Notice example

With locale

Passing a lang value allows the content of the notice to be labelled as being a different language from surrounding content. The lang attribute must be set to a valid BCP47 string. A valid code can be the two or three letter language code - for example, English is en or eng, Korean is ko or kor - but if in doubt please check.

How it looks (preview)

This publication was withdrawn on 30 September 2015

This document is no longer current. We published a new version on 30 September 2015.

How to call this example

<%= render "govuk_publishing_components/components/notice", {
  title: "This publication was withdrawn on 30 September 2015",
  description_govspeak: sanitize("<p>This document is no longer current. We published a new version on 30 September 2015.</p>"),
  lang: "en"
} %>