IUserSettingsService
This query service provides access to feature flags that are in effect for particular user.
export interface IUserSettingsService
Methods
Method | Description |
|---|---|
Asynchronously queries actual feature flags. | |
Set format locale for the current user | |
Set locale for the current user | |
Set metadata locale for the current user | |
Set separators for the current user |
Method details
IUserSettingsService.getSettings()method
Asynchronously queries actual feature flags.
getSettings(): Promise<IUserSettings>;
Returns
Promise<IUserSettings>
promise of the feature flags of the current user
IUserSettingsService.setFormatLocale()method
Set format locale for the current user
setFormatLocale(locale: string): Promise<void>;
Parameters
Parameter | Type | Description |
|---|---|---|
locale | string | IETF BCP 47 Code locale ID, for example “en-US”, “cs-CZ”, etc. |
Returns
Promise<void>
promise
IUserSettingsService.setLocale()method
Set locale for the current user
setLocale(locale: string): Promise<void>;
Parameters
Parameter | Type | Description |
|---|---|---|
locale | string | IETF BCP 47 Code locale ID, for example “en-US”, “cs-CZ”, etc. |
Returns
Promise<void>
promise
IUserSettingsService.setMetadataLocale()method
Set metadata locale for the current user
setMetadataLocale(locale: string): Promise<void>;
Parameters
Parameter | Type | Description |
|---|---|---|
locale | string | IETF BCP 47 Code locale ID, for example “en-US”, “cs-CZ”, etc. |
Returns
Promise<void>
promise
IUserSettingsService.setSeparators()method
Set separators for the current user
setSeparators(separators: ISeparators): Promise<void>;
Parameters
Parameter | Type | Description |
|---|---|---|
separators | separators for the current user |
Returns
Promise<void>
promise