Hwaro::Content::Multilingual
Constants
Mirrors Core::Build::Phases::ReadContent::PAGE_EXTENSIONS (not
required here to avoid pulling the build phases into the content
layer). .md first so the common case short-circuits.
Instance methods
Fill page.translations for every page. A page's group is its
translation_key (scoped to its version, so v1/ and v2/ copies
sharing a key stay apart) or, without one, its file name minus the
language suffix (about.md ↔ about.ko.md). The two never mix: a
keyed page does not join the file-name group of an unkeyed one.
Inside a keyed group each language keeps one page — a linkable one
(rendered, not a redirect stub) before any other, then the first
path in byte order; the others are returned so callers can report
them.
The page extension of path, or nil when it is not a page source.