Skip to main content

Introducing Workflow Engine, try for FREE workflowengine.io.

Class: Language

@react-form-builder/core.Language

The language to localize the form builder.

Constructors

constructor

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

Creates a localization language for the form builder.

Parameters

NameTypeDefault valueDescription
codestringundefinedthe language code, for example, 'en'.
dialectstringundefinedthe dialect code, for example, 'US'.
namestringundefinedthe name of the language, for example 'English'.
descriptionstringundefinedthe description of the language, for example 'American English'.
bidiBiDiBiDi.LTRthe type of text layout, for example, BiDi.LTR.

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 fullCode(): string

Returns

string

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

NameTypeDescription
sourceLanguagethe cloning object.

Returns

Language

the object clone.