translated_texts

Check all properties of a map, list or resource. Returns a list of all properties that are translated (have a #trans{} record) and their translations.

For example, if the input is a resource with the following properties:

#{
    <<"title">> => #trans{tr = [{en, <<"Hello">>}, {nl, <<"Hallo">>}]},
    <<"description">> => <<"A description">>
}

Then the output will be:

[
    {<<"title">>, #trans{tr = [{en, <<"Hello">>}, {nl, <<"Hallo">>}]} }
]

See also

translation