Lang
Recurso de atribuição de linguagem.
code
_lang.code() : string
Description
Returns all the locale.
Return
( string )
get
_lang.get(key: string) : string
Description
Searchs for a key.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
key | string | Key to be searched. |
Return
( string )
Returns the match key.
_lang.get(key: string, formats: [Ljava.lang.Object;[]) : string
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
key | string | |
formats | [Ljava.lang.Object;[] |
Return
( string )
getCode
_lang.getCode() : string
Description
Returns all the locale.
Return
( string )
getLocale
_lang.getLocale() : java.util.Locale
Description
Returns the of the locale.
Return
( java.util.Locale )
getName
_lang.getName() : string
Description
Returns the of the locale.
Return
( string )
getOrDefault
_lang.getOrDefault(key: string, text: string) : string
Description
Sets the default locale key with a inserted text.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
key | string | Inserted key. |
text | string | Inserted text. |
Return
( string )
Returns the key and the text inserted.
init
_lang.init() : Lang
Description
Initiates the Lang resource.
Return
( Lang )
Returns the default lang.
_lang.init(localeName: string) : Lang
Description
Sets the default locale key with a inserted text.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
localeName | string | Inserted key. |
Return
( Lang )
Returns the key and the text inserted.
_lang.init(localeName: string, asDefault: boolean) : Lang
Description
Sets the default locale key with a inserted text.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
localeName | string | Inserted key. |
asDefault | boolean | Sets if is default. |
Return
( Lang )
Returns the key and the text inserted.
locale
_lang.locale() : java.util.Locale
Description
Returns the of the locale.
Return
( java.util.Locale )
name
_lang.name() : string
Description
Returns the of the locale.
Return
( string )