AshGettext.Calculations.EnumLabel (AshGettext v0.1.0)

Copy Markdown View Source

The translated label of an enum attribute, in the language of the query's actor. With no actor, Gettext's current locale.

AshGettext.Resource adds this as <attribute>_label. A nil value stays nil; a list attribute gives a list of labels.

Summary

Functions

describe(opts)

Callback implementation for Ash.Resource.Calculation.describe/1.

has_calculate?()

has_expression?()

Callback implementation for Ash.Resource.Calculation.has_expression?/0.

init(opts)

Callback implementation for Ash.Resource.Calculation.init/1.

strict_loads?()

Callback implementation for Ash.Resource.Calculation.strict_loads?/0.