Table of Contents






Language

A language is an object with holds text translated in multiple languages.

Description

Returns a empty Language object.

Returns
data type description
Language A Language object
Description

Returns a Language object with the english languauge set.

Parameters
parameter data type description
0 String | Language The text in the english language to initalize the Langauge object with
Returns
data type description
Result<Language> A Language object
Description

Returns the text in the defined language if found.

Parameters
parameter data type description
0 String The language ident (en, de, fr, it, ...)
Returns
data type description
Option<String> Returns the text in the defined language if found
Description

Sets the language text for the given language ident.

Parameters
parameter data type description
0 String The language ident (en, de, fr, it, ...)
1 String The language text
Returns
data type description
Result<()> Returns error when input was wrong