Skip to content

v0.3.8

Choose a tag to compare

@github-actions github-actions released this 01 May 07:57

Added

  • ContentItem::$language (default 'en'): New optional constructor parameter. Platform adapters pass the BCP-47 language code so the exporter and HTML builder can tag each document with the correct language.
  • PagefindHtmlBuilder::build() now accepts string $language = 'en': The generated HTML now includes <html lang="..."> and <span data-pagefind-filter="language:..."> so Pagefind can filter search results by language. Existing callers are unaffected (defaults to 'en').
  • ContentExporter::export() forwards language to HTML output: The language field on ContentItem is now passed through to PagefindHtmlBuilder, so every exported HTML file carries the correct lang attribute and language filter span.