AshGettext.Domain.Transformers.MarkTexts (AshGettext v0.1.0)

Copy Markdown View Source

Shows mix gettext.extract every text this domain's resources translate: written attribute labels, literal messages in their DSL and in the app's own validation, change and preparation modules they use, and the sentences for Ash's own errors (AshGettext.AshMessages). See AshGettext.Extractor.

It runs in the domain, not the resource: an Ash domain compiles its resources first, so a resource waiting on its domain would deadlock. Messages are left out when the domain sets translate_errors? false. It only does work while Gettext is extracting, so a normal compile is unchanged.

Summary

Functions

after_compile?()

Callback implementation for Spark.Dsl.Transformer.after_compile?/0.

before?(_)

Callback implementation for Spark.Dsl.Transformer.before?/1.