AshGettext.Domain.Verifiers.ValidateResourceExtensions (AshGettext v0.1.0)

Copy Markdown View Source

Reports, at compile time, every resource of a domain that asked for it which never added AshGettext.Resource.

A resource without the extension silently answers in English; this turns that into a compiler diagnostic (an error under --warnings-as-errors, as with any Spark verifier) instead of a host-app test with a hand-kept domain list. It checks the extension, not each action's error_handler: an action that declares its own handler is a deliberate choice the transformer already respects.

The verifier runs while the domain compiles, and only when you set require_resource_extension? to true in the gettext block. With the option off, which is the default, it does nothing. You turn it on once every resource in the domain is ready, so a new resource cannot ship untranslated.