module

Hwaro::Content::Multilingual

Constants

PAGE_EXTENSIONS = {".md", ".markdown"}

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

language_code(page : Models::Page, config : Models::Config) : String
Source
multilingual?(config : Models::Config) : Bool
Source
ordered_language_codes(config : Models::Config) : Array(String)
Source
page_extension(path : String) : String | Nil

The page extension of path, or nil when it is not a page source.

Source
translation_key(page_path : String, config : Models::Config) : String
Source

Nested types