Skip to main content

Class: I18nService

Hierarchy

Constructors

constructor

new I18nService(notificationService)

Parameters

NameType
notificationServiceNotificationService

Overrides

DefaultGlobalService.constructor

Defined in

onekijs/packages/onekijs-framework/src/i18n/I18nService.ts:19

Properties

[combinedReducers]

[combinedReducers]: (state: any, action: any) => any

Type declaration

▸ (state, action): any

Parameters
NameType
stateany
actionany
Returns

any

Inherited from

DefaultGlobalService.[combinedReducers]

Defined in

onekijs/packages/onekijs-framework/src/core/Service.ts:63


[dispatch]

[dispatch]: any

Inherited from

DefaultGlobalService.[dispatch]

Defined in

onekijs/packages/onekijs-framework/src/core/Service.ts:62


[inReducer]

[inReducer]: boolean

Inherited from

DefaultGlobalService.[inReducer]

Defined in

onekijs/packages/onekijs-framework/src/core/Service.ts:64


[reducers]

[reducers]: any

Inherited from

DefaultGlobalService.[reducers]

Defined in

onekijs/packages/onekijs-framework/src/core/Service.ts:59


[sagas]

[sagas]: any

Inherited from

DefaultGlobalService.[sagas]

Defined in

onekijs/packages/onekijs-framework/src/core/Service.ts:61


[types]

[types]: any

Inherited from

DefaultGlobalService.[types]

Defined in

onekijs/packages/onekijs-framework/src/core/Service.ts:60


context

context: AppContext

Inherited from

DefaultGlobalService.context

Defined in

onekijs/packages/onekijs-framework/src/app/AppService.ts:8


modifiers

modifiers: AnonymousObject<any>

Defined in

onekijs/packages/onekijs-framework/src/i18n/I18nService.ts:17


notificationService

notificationService: NotificationService

Defined in

onekijs/packages/onekijs-framework/src/i18n/I18nService.ts:16


state

state: AnyState

Inherited from

DefaultGlobalService.state

Defined in

onekijs/packages/onekijs-framework/src/core/Service.ts:66

Methods

[create]

[create](initialState): void

Parameters

NameType
initialStateAnyState

Returns

void

Inherited from

DefaultGlobalService.[create]

Defined in

onekijs/packages/onekijs-framework/src/core/Service.ts:69


[run]

[run](): void

Returns

void

Inherited from

DefaultGlobalService.[run]

Defined in

onekijs/packages/onekijs-framework/src/app/GlobalService.ts:7


[stop]

[stop](): void

Returns

void

Inherited from

DefaultGlobalService.[stop]

Defined in

onekijs/packages/onekijs-framework/src/app/GlobalService.ts:15


changeLocale

changeLocale(locale): Generator<void, void, unknown>

Parameters

NameType
localestring

Returns

Generator<void, void, unknown>

Defined in

onekijs/packages/onekijs-framework/src/i18n/I18nService.ts:40


fetchTranslations

fetchTranslations(locale, namespaces, options?): Generator<any, void, AnonymousObject<any>[]>

Parameters

NameType
localestring
namespacesstring[]
optionsObject
options.onError?any

Returns

Generator<any, void, AnonymousObject<any>[]>

Defined in

onekijs/packages/onekijs-framework/src/i18n/I18nService.ts:52


getLocaleUrl

getLocaleUrl(locale, ns, settings): string

Parameters

NameType
localestring
nsstring
settingsAppSettings

Returns

string

Defined in

onekijs/packages/onekijs-framework/src/i18n/I18nService.ts:78


init

init(): void

Returns

void

Defined in

onekijs/packages/onekijs-framework/src/i18n/I18nService.ts:26


setFetchingTranslations

setFetchingTranslations(fetching, locale, namespaces): void

Parameters

NameType
fetchingboolean
localestring
namespacesstring[]

Returns

void

Defined in

onekijs/packages/onekijs-framework/src/i18n/I18nService.ts:86


setLocale

setLocale(locale): void

Parameters

NameType
localestring

Returns

void

Defined in

onekijs/packages/onekijs-framework/src/i18n/I18nService.ts:91


setTranslations

setTranslations(translations, locale): void

Parameters

NameType
translationsAnonymousObject<any>
localestring

Returns

void

Defined in

onekijs/packages/onekijs-framework/src/i18n/I18nService.ts:96