AshTranslation.Resource.Info (ash_translation v0.2.6)

View Source

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

translations_fields(dsl_or_extended)

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

A list of fields to add to the translation fields

translations_fields!(dsl_or_extended)

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

A list of fields to add to the translation fields

translations_locales(dsl_or_extended)

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

The locales to add to the translations resource

translations_locales!(dsl_or_extended)

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

The locales to add to the translations resource

translations_options(dsl_or_extended)

@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.

translations_public?(dsl_or_extended)

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

Whether the embedded resource should be public or not