Glific v0.3.1 Glific.Flows.Localization View Source

The Localization object which stores all the localizations for all languages for a flow

Link to this section Summary

Functions

Given a language id and an action uuid, return the translation if one exists, else return the original text

Process a json structure from floweditor to the Glific data types

Link to this section Types

Specs

t() :: %Glific.Flows.Localization{id: term(), localizations: map() | nil}

Link to this section Functions

Link to this function

get_translation(context, action)

View Source

Specs

Given a language id and an action uuid, return the translation if one exists, else return the original text

Specs

process(map()) :: t()

Process a json structure from floweditor to the Glific data types