Documentation
Code
GitLab
@geogirafe/lib-geoportal
tools/i18n/i18nmanager
I18nManager
Class I18nManager
Hierarchy (
View Summary
)
GirafeSingleton
I18nManager
Index
Constructors
constructor
Properties
config
Manager
loading
Language
Promise
state
Manager
translations
Methods
format
Number
get
Translation
is
Null
Or
Undefined
is
Null
Or
Undefined
Or
Blank
translate
get
Instance
Constructors
constructor
new
I18nManager
(
type
:
string
)
:
I18nManager
Parameters
type
:
string
Returns
I18nManager
Properties
config
Manager
configManager
:
ConfigManager
loading
Language
Promise
loadingLanguagePromise
:
null
|
Promise
<
TranslationsDict
>
= null
state
Manager
stateManager
:
StateManager
translations
translations
:
AvailableLanguages
= {}
Methods
format
Number
formatNumber
(
number
:
string
|
number
)
:
string
Parameters
number
:
string
|
number
Returns
string
get
Translation
getTranslation
(
key
:
string
)
:
string
Parameters
key
:
string
Returns
string
is
Null
Or
Undefined
isNullOrUndefined
(
val
:
unknown
)
:
val
is
undefined
|
null
Parameters
val
:
unknown
Returns
val
is
undefined
|
null
is
Null
Or
Undefined
Or
Blank
isNullOrUndefinedOrBlank
(
val
:
unknown
)
:
val
is
undefined
|
null
|
""
Parameters
val
:
unknown
Returns
val
is
undefined
|
null
|
""
translate
translate
(
dom
:
DocumentFragment
)
:
Promise
<
void
>
Parameters
dom
:
DocumentFragment
Returns
Promise
<
void
>
Static
get
Instance
getInstance
<
T
>
(
this
:
Constructor
<
T
>
)
:
T
Type Parameters
T
Parameters
this
:
Constructor
<
T
>
Returns
T
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
config
Manager
loading
Language
Promise
state
Manager
translations
Methods
format
Number
get
Translation
is
Null
Or
Undefined
is
Null
Or
Undefined
Or
Blank
translate
get
Instance
@geogirafe/lib-geoportal
Loading...