Skip to main content

Introducing Workflow Engine, try for FREE workflowengine.io.

Class: Language

The language to localize the form builder.

Constructors​

Constructor​

new Language(code, dialect, name, description, bidi): Language

Creates a localization language for the form builder.

Parameters​

code​

string

the language code, for example, 'en'.

dialect​

string

the dialect code, for example, 'US'.

name​

string

the name of the language, for example 'English'.

description​

string

the description of the language, for example 'American English'.

bidi​

BiDi = BiDi.LTR

the type of text layout, for example, BiDi.LTR.

Returns​

Language

Properties​

bidi​

readonly bidi: BiDi = BiDi.LTR

the type of text layout, for example, BiDi.LTR.


code​

readonly code: string

the language code, for example, 'en'.


description​

readonly description: string

the description of the language, for example 'American English'.


dialect​

readonly dialect: string

the dialect code, for example, 'US'.


name​

readonly name: string

the name of the language, for example 'English'.

Accessors​

fullCode​

Get Signature​

get fullCode(): `${string}-${string}`

Returns​

`${string}-${string}`

the full code of the Language i.e. en-US, en-GB etc.

Methods​

clone()​

static clone(source): Language

Clones an existing instance of the language.

Parameters​

source​

Language

the cloning object.

Returns​

Language

the object clone.