Class: I18nService
Hierarchy
↳
I18nService
Constructors
constructor
• new I18nService(notificationService
)
Parameters
Name | Type |
---|---|
notificationService | NotificationService |
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
Name | Type |
---|---|
state | any |
action | any |
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
Defined in
onekijs/packages/onekijs-framework/src/core/Service.ts:61
[types]
• [types]: any
Inherited from
Defined in
onekijs/packages/onekijs-framework/src/core/Service.ts:60
context
• context: AppContext
Inherited from
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
Defined in
onekijs/packages/onekijs-framework/src/core/Service.ts:66
Methods
[create]
▸ [create](initialState
): void
Parameters
Name | Type |
---|---|
initialState | AnyState |
Returns
void
Inherited from
Defined in
onekijs/packages/onekijs-framework/src/core/Service.ts:69
[run]
▸ [run](): void
Returns
void
Inherited from
Defined in
onekijs/packages/onekijs-framework/src/app/GlobalService.ts:7
[stop]
▸ [stop](): void
Returns
void
Inherited from
Defined in
onekijs/packages/onekijs-framework/src/app/GlobalService.ts:15
changeLocale
▸ changeLocale(locale
): Generator
<void
, void
, unknown
>
Parameters
Name | Type |
---|---|
locale | string |
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
Name | Type |
---|---|
locale | string |
namespaces | string [] |
options | Object |
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
Name | Type |
---|---|
locale | string |
ns | string |
settings | AppSettings |
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
Name | Type |
---|---|
fetching | boolean |
locale | string |
namespaces | string [] |
Returns
void
Defined in
onekijs/packages/onekijs-framework/src/i18n/I18nService.ts:86
setLocale
▸ setLocale(locale
): void
Parameters
Name | Type |
---|---|
locale | string |
Returns
void
Defined in
onekijs/packages/onekijs-framework/src/i18n/I18nService.ts:91
setTranslations
▸ setTranslations(translations
, locale
): void
Parameters
Name | Type |
---|---|
translations | AnonymousObject <any > |
locale | string |
Returns
void
Defined in
onekijs/packages/onekijs-framework/src/i18n/I18nService.ts:96