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
readonlybidi:BiDi=BiDi.LTR
the type of text layout, for example, BiDi.LTR.
code
readonlycode:string
the language code, for example, 'en'.
description
readonlydescription:string
the description of the language, for example 'American English'.
dialect
readonlydialect:string
the dialect code, for example, 'US'.
name
readonlyname: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()
staticclone(source):Language
Clones an existing instance of the language.
Parameters
source
Language
the cloning object.
Returns
Language
the object clone.