View Source AshTrans.Resource.Info (ash_trans v0.1.1)

Summary

Functions

A list of fields to add to the translation fields

A list of fields to add to the translation fields

The locales to add to the translations resource

The locales to add to the translations resource

translations DSL options

Whether the embedded resource should be public or not

Functions

Link to this function

translations_fields(dsl_or_extended)

View Source
@spec translations_fields(dsl_or_extended :: module() | map()) ::
  {:ok, [atom()]} | :error

A list of fields to add to the translation fields

Link to this function

translations_fields!(dsl_or_extended)

View Source
@spec translations_fields!(dsl_or_extended :: module() | map()) ::
  [atom()] | no_return()

A list of fields to add to the translation fields

Link to this function

translations_locales(dsl_or_extended)

View Source
@spec translations_locales(dsl_or_extended :: module() | map()) ::
  {:ok, [atom()]} | :error

The locales to add to the translations resource

Link to this function

translations_locales!(dsl_or_extended)

View Source
@spec translations_locales!(dsl_or_extended :: module() | map()) ::
  [atom()] | no_return()

The locales to add to the translations resource

Link to this function

translations_options(dsl_or_extended)

View Source
@spec translations_options(dsl_or_extended :: module() | map()) :: %{
  required(atom()) => any()
}

translations DSL options

Returns a map containing the and any configured or default values.

Link to this function

translations_public?(dsl_or_extended)

View Source
@spec translations_public?(dsl_or_extended :: module() | map()) :: boolean()

Whether the embedded resource should be public or not