Module cuttlefish_translation

Data Types

raw_translation()

raw_translation() = {translation, string(), translation_fun()} | {translation, string()}

translation()

translation() = #translation{mapping = string(), func = function() | undefined}

translation_fun()

translation_fun() = fun(([proplists:property()]) -> any())

Function Index

func/1
is_translation/1
mapping/1
parse/1
parse_and_merge/2
replace/2

Function Details

func/1

func(T::translation()) -> function()

is_translation/1

is_translation(T::any()) -> boolean()

mapping/1

mapping(T::translation()) -> string()

parse/1

parse(X::raw_translation()) -> translation() | cuttlefish_error:error()

parse_and_merge/2

parse_and_merge(TranslationSource::raw_translation(), Translations::[translation()]) -> [translation()]

replace/2

replace(Translation::translation(), ListOfTranslations::[translation()]) -> [translation()]


Generated by EDoc