Search
Preparing search index...
The search index is not available
tabby-core
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
tabby-core
LocaleService
Class LocaleService
Hierarchy
LocaleService
Index
Constructors
constructor
Properties
locale
locale
Changed
logger
all
Languages
Accessors
locale
Changed$
Methods
get
Locale
patch
Translate
Service
refresh
set
Locale
Constructors
constructor
new
Locale
Service
(
config
:
ConfigService
, translate
:
TranslateService
, log
:
LogService
)
:
LocaleService
Parameters
config:
ConfigService
translate:
TranslateService
log:
LogService
Returns
LocaleService
Properties
Private
locale
locale
:
string
= 'en-US'
Private
locale
Changed
locale
Changed
:
Subject
<
string
>
= ...
Private
logger
logger
:
Logger
Static
all
Languages
all
Languages
:
{
code
:
string
;
name
:
string
}
[]
= ...
Accessors
locale
Changed$
get
localeChanged$
(
)
:
Observable
<
string
>
Returns
Observable
<
string
>
Methods
get
Locale
get
Locale
(
)
:
string
Returns
string
Private
patch
Translate
Service
patch
Translate
Service
(
translate
:
TranslateService
)
:
void
Parameters
translate:
TranslateService
Returns
void
refresh
refresh
(
)
:
void
Returns
void
set
Locale
set
Locale
(
lang
:
string
)
:
Promise
<
void
>
Parameters
lang:
string
Returns
Promise
<
void
>
Exports
Locale
Service
constructor
locale
locale
Changed
logger
all
Languages
locale
Changed$
get
Locale
patch
Translate
Service
refresh
set
Locale
Generated using
TypeDoc